File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,8 @@ class Command {
158
158
return ( yargs ) => {
159
159
b ( yargs ) ;
160
160
_ . forEach ( this . subCommands , ( subCommand ) => {
161
- if ( ! subCommand . hasOwnProperty ( 'requiresAuthentication' ) && command . hasOwnProperty ( 'requiresAuthentication' ) ) {
162
- subCommand . requiresAuthentication = command . requiresAuthentication ;
161
+ if ( ! subCommand . hasOwnProperty ( 'requiresAuthentication' ) && this . hasOwnProperty ( 'requiresAuthentication' ) ) {
162
+ subCommand . requiresAuthentication = this . requiresAuthentication ;
163
163
} else {
164
164
subCommand . requiresAuthentication = true ;
165
165
}
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ const authManager = auth.manager;
5
5
6
6
const printTableForAuthContexts = ( ) => {
7
7
const currentContext = authManager . getCurrentContext ( ) ;
8
+ if ( ! currentContext ) {
9
+ console . log ( 'No authentication contexts.' ) ;
10
+ return ;
11
+ }
8
12
const contexts = authManager . getAllContexts ( ) ;
9
13
const keys = currentContext . defaultColumns ;
10
14
const res = [ ] ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.7.3 " ,
3
+ "version" : " 0.7.4 " ,
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