File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- VERSION =v0.0.218
1
+ VERSION =v0.0.219
2
2
3
3
OUT_DIR =dist
4
4
YEAR? =$(shell date +"% Y")
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ cf version
23
23
24
24
``` bash
25
25
# download and extract the binary
26
- curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.218 /cf-linux-amd64.tar.gz | tar zx
26
+ curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.219 /cf-linux-amd64.tar.gz | tar zx
27
27
28
28
# move the binary to your $PATH
29
29
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
36
36
37
37
``` bash
38
38
# download and extract the binary
39
- curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.218 /cf-darwin-amd64.tar.gz | tar zx
39
+ curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.219 /cf-darwin-amd64.tar.gz | tar zx
40
40
41
41
# move the binary to your $PATH
42
42
mv ./cf-darwin-amd64 /usr/local/bin/cf
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
5
5
namespace : ' {{ namespace }}'
6
6
spec :
7
7
defVersion : 1.0.0
8
- version : 0.0.218
8
+ version : 0.0.219
9
9
bootstrapSpecifier : github.com/codefresh-io/cli-v2/manifests/argo-cd
10
10
components :
11
11
- name : events
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ func (l *logrusAdapter) AddPFlags(cmd *cobra.Command) {
79
79
cmd .PersistentFlags ().AddFlagSet (flags )
80
80
81
81
initFunc := func (cmd * cobra.Command ) {
82
- orgPreRun := cmd .PreRunE
82
+ orgPreRunE := cmd .PreRunE
83
83
84
84
cmd .PreRunE = func (cmd * cobra.Command , args []string ) error {
85
85
switch * format {
@@ -93,9 +93,13 @@ func (l *logrusAdapter) AddPFlags(cmd *cobra.Command) {
93
93
return err
94
94
}
95
95
96
- if orgPreRun != nil {
97
- return orgPreRun (cmd , args )
96
+ if orgPreRunE != nil {
97
+ return orgPreRunE (cmd , args )
98
98
}
99
+ if cmd .PreRun != nil {
100
+ cmd .PreRun (cmd , args )
101
+ }
102
+
99
103
return nil
100
104
}
101
105
}
You can’t perform that action at this time.
0 commit comments