@@ -37,9 +37,9 @@ var argv = yargs
37
37
return require ( './commands/init' ) ( argv ) ;
38
38
}
39
39
} )
40
- . command ( 'build' , Constants . cliMessages . BUILD . INFO , function ( yargs ) {
40
+ . command ( 'build-info ' , Constants . cliMessages . BUILD . INFO , function ( yargs ) {
41
41
argv = yargs
42
- . usage ( 'usage: $0 info <buildId>' )
42
+ . usage ( 'usage: $0 <buildId>' )
43
43
. demand ( 1 , Constants . cliMessages . BUILD . DEMAND )
44
44
. options ( 'cf' , {
45
45
alias : 'config-file' ,
@@ -54,10 +54,31 @@ var argv = yargs
54
54
. wrap ( null )
55
55
. argv
56
56
if ( checkCommands ( yargs , argv , 1 ) ) {
57
- logger . log ( Constants . cliMessages . BUILD . DISPLAY + argv . _ [ 1 ] ) ;
57
+ logger . log ( Constants . cliMessages . BUILD . INFO_MESSAGE + argv . _ [ 1 ] ) ;
58
58
return require ( './commands/info' ) ( argv ) ;
59
59
}
60
60
} )
61
+ . command ( 'build-stop' , Constants . cliMessages . BUILD . STOP , function ( yargs ) {
62
+ argv = yargs
63
+ . usage ( 'usage: $0 <buildId>' )
64
+ . demand ( 1 , Constants . cliMessages . BUILD . DEMAND )
65
+ . options ( 'cf' , {
66
+ alias : 'config-file' ,
67
+ describe : Constants . cliMessages . BUILD . DESC ,
68
+ default : '/browserstack.json' ,
69
+ type : 'string' ,
70
+ nargs : 1 ,
71
+ demand : true ,
72
+ demand : Constants . cliMessages . BUILD . CONFIG_DEMAND
73
+ } )
74
+ . help ( 'help' )
75
+ . wrap ( null )
76
+ . argv
77
+ if ( checkCommands ( yargs , argv , 1 ) ) {
78
+ logger . log ( Constants . cliMessages . BUILD . STOP_MESSAGE + argv . _ [ 1 ] ) ;
79
+ return require ( './commands/stop' ) ( argv ) ;
80
+ }
81
+ } )
61
82
. command ( 'run' , Constants . cliMessages . RUN . INFO , function ( yargs ) {
62
83
argv = yargs
63
84
. usage ( 'usage: $0 build' )
0 commit comments