File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import * as cli from "../script/types/cli";
6
6
import * as chalk from "chalk" ;
7
7
import backslash = require( "backslash" ) ;
8
8
import parseDuration = require( "parse-duration" ) ;
9
+ import AccountManager = require( "./management-sdk" ) ;
9
10
10
11
const packageJson = require ( "../../package.json" ) ;
11
12
const ROLLOUT_PERCENTAGE_REGEX : RegExp = / ^ ( 1 0 0 | [ 1 - 9 ] [ 0 - 9 ] | [ 1 - 9 ] ) % ? $ / ;
@@ -428,10 +429,13 @@ yargs
428
429
isValidCommandCategory = true ;
429
430
isValidCommand = true ;
430
431
yargs
431
- . usage ( USAGE_PREFIX + " login [options]" )
432
- . demand ( /*count*/ 0 , /*max*/ 1 ) //set 'max' to one to allow usage of serverUrl undocument parameter for testing
433
- . example ( "login" , "Logs in to the CodePush server" )
434
- . example ( "login --accessKey mykey" , 'Logs in on behalf of the user who owns and created the access key "mykey"' )
432
+ . usage ( USAGE_PREFIX + " login <serverUrl> [options]" )
433
+ . demand ( /*count*/ 0 , /*max*/ 1 ) //set 'max' to one to allow usage of serverUrl
434
+ . example ( "login" , `Logs in to the CodePush server on default serverUrl ${ AccountManager . SERVER_URL } ` )
435
+ . example (
436
+ "login https://codepush.example.com --accessKey mykey" ,
437
+ 'Logs in on behalf of the user who owns and created the access key "mykey", on the server running at https://codepush.example.com'
438
+ )
435
439
. option ( "accessKey" , {
436
440
alias : "key" ,
437
441
default : null ,
You can’t perform that action at this time.
0 commit comments