File tree Expand file tree Collapse file tree 5 files changed +10
-19
lines changed
lib/interface/cli/commands/context/create/git Expand file tree Collapse file tree 5 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ const command = new Command({
23
23
choices : [ 'AccountAdmins' , 'AllUsersInAccount' ] ,
24
24
default : 'AccountAdmins' ,
25
25
} )
26
- . option ( 'skip-validation ' , {
27
- describe : 'Set to true to skip validation ' ,
26
+ . option ( 'behind-firewall ' , {
27
+ describe : 'Set to true to mark this context with behind firewall flag ' ,
28
28
type : 'boolean' ,
29
29
default : false ,
30
30
} ) ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ const command = new Command({
44
44
spec : {
45
45
type : 'git.bitbucket' ,
46
46
data : {
47
+ behindFirewall : argv . behindFirewall ,
47
48
sharingPolicy : argv . sharingPolicy ,
48
49
auth : {
49
50
type : 'basic' ,
@@ -58,11 +59,7 @@ const command = new Command({
58
59
if ( ! data . metadata . name || ! data . spec . type ) {
59
60
throw new CFError ( 'Name and type must be provided' ) ;
60
61
}
61
- const opt = { } ;
62
- if ( argv . skipValidation ) {
63
- opt . skipValidation = true ;
64
- }
65
- await context . createContext ( data , opt ) ;
62
+ await context . createContext ( data ) ;
66
63
console . log ( `Context: ${ data . metadata . name } created` ) ;
67
64
} ,
68
65
} ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const command = new Command({
34
34
default : DEFAULT_API_HOST ,
35
35
required : true ,
36
36
} )
37
- . option ( 'api' , {
37
+ . option ( 'api-path-prefix ' , {
38
38
describe : 'Prefix of the api on the given host' ,
39
39
alias : 'a' ,
40
40
default : DEFAULT_API_PREFIX ,
@@ -52,6 +52,7 @@ const command = new Command({
52
52
spec : {
53
53
type : 'git.github' ,
54
54
data : {
55
+ behindFirewall : argv . behindFirewall ,
55
56
sharingPolicy : argv . sharingPolicy ,
56
57
auth : {
57
58
type : 'basic' ,
@@ -72,11 +73,7 @@ const command = new Command({
72
73
if ( ! data . metadata . name || ! data . spec . type ) {
73
74
throw new CFError ( 'Name and type must be provided' ) ;
74
75
}
75
- const opt = { } ;
76
- if ( argv . skipValidation ) {
77
- opt . skipValidation = true ;
78
- }
79
- await context . createContext ( data , opt ) ;
76
+ await context . createContext ( data ) ;
80
77
console . log ( `Context: ${ data . metadata . name } created` ) ;
81
78
} ,
82
79
} ) ;
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ const command = new Command({
46
46
spec : {
47
47
type : 'git.gitlab' ,
48
48
data : {
49
+ behindFirewall : argv . behindFirewall ,
49
50
sharingPolicy : argv . sharingPolicy ,
50
51
auth : {
51
52
type : 'basic' ,
@@ -63,11 +64,7 @@ const command = new Command({
63
64
if ( ! data . metadata . name || ! data . spec . type ) {
64
65
throw new CFError ( 'Name and type must be provided' ) ;
65
66
}
66
- const opt = { } ;
67
- if ( argv . skipValidation ) {
68
- opt . skipValidation = true ;
69
- }
70
- await context . createContext ( data , opt ) ;
67
+ await context . createContext ( data ) ;
71
68
console . log ( `Context: ${ data . metadata . name } created` ) ;
72
69
} ,
73
70
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.12 .0" ,
3
+ "version" : " 0.13 .0" ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments