@@ -113,7 +113,7 @@ SdkSubcommands.list = {
113113 desc : 'retrieve and print all branches'
114114 } ,
115115 json : {
116- desc : 'display installed modules as json '
116+ desc : 'display installed modules as JSON '
117117 } ,
118118 releases : {
119119 abbr : 'r' ,
@@ -352,7 +352,7 @@ SdkSubcommands.install = {
352352
353353 await mkdir ( titaniumDir , { recursive : true } ) ;
354354
355- // step 1: determine what the uri is
355+ // step 1: determine what the URI is
356356
357357 const { downloadedFile, file } = await getInstallFile ( {
358358 branch : cli . argv . branch ,
@@ -363,7 +363,7 @@ SdkSubcommands.install = {
363363 subject
364364 } ) ;
365365
366- // step 2: extract the sdk zip file
366+ // step 2: extract the SDK zip file
367367
368368 let { forceModules, name, renameTo, tempDir } = await extractSDK ( {
369369 debugLogger : cli . debugLogger ,
@@ -396,7 +396,7 @@ SdkSubcommands.install = {
396396 throw new TiError ( 'Zip file does not contain a valid Titanium SDK' ) ;
397397 }
398398
399- // step 4: move the sdk files to the dest
399+ // step 4: move the SDK files to the dest
400400
401401 const dest = join ( titaniumDir , 'mobilesdk' , osName , renameTo || name ) ;
402402 if ( showProgress ) {
@@ -487,15 +487,15 @@ async function getInstallFile({ branch, config, logger, osName, showProgress, su
487487 return { file } ;
488488 }
489489
490- // we are downloading an sdk
490+ // we are downloading an SDK
491491
492492 let url ;
493493 let uri = subject . toLowerCase ( ) ;
494494 if ( uriMatch && uriMatch [ 1 ] ) {
495- // we have a http url
495+ // we have a http URL
496496 url = uriMatch [ 1 ] ;
497497 } else if ( branch ) {
498- // we have a ci build
498+ // we have a CI build
499499 const branches = await getBranches ( ) ;
500500 if ( ! branches . includes ( branch ) ) {
501501 throw new TiError ( `Branch "${ branch } " does not exist` , {
@@ -574,7 +574,7 @@ async function getInstallFile({ branch, config, logger, osName, showProgress, su
574574 let m = cd && cd . match ( / f i l e n a m e \* ? = (?: [ ^ ' ] * ' [ ^ ' ] * ' ( [ ^ ; ] + ) | [ " ' ] ( [ ^ " ' ] + ) [ " ' ] | ( [ ^ ; \s ] + ) ) / i) ;
575575 filename = m && ( m [ 1 ] || m [ 2 ] || m [ 3 ] ) ;
576576
577- // try to determine the file extension by the filename in the url
577+ // try to determine the file extension by the filename in the URL
578578 if ( ! filename && ( m = url . match ( / .* \/ ( .+ \. z i p ) $ / ) ) ) {
579579 filename = m [ 1 ] ;
580580 }
0 commit comments