@@ -8,15 +8,15 @@ export class Options {
88 private optionsWhiteList = [ "ui" , "recursive" , "reporter" , "require" , "timeout" , "_" , "$0" ] ; // These options shouldn't be validated
99 public argv : IYargArgv ;
1010 private globalOptions : IDictionary < IDashedOption > = {
11- log : { type : OptionType . String } ,
12- verbose : { type : OptionType . Boolean , alias : "v" } ,
13- version : { type : OptionType . Boolean } ,
14- help : { type : OptionType . Boolean , alias : "h" } ,
15- profileDir : { type : OptionType . String } ,
16- analyticsClient : { type : OptionType . String } ,
17- path : { type : OptionType . String , alias : "p" } ,
11+ log : { type : OptionType . String , hasSensitiveValue : false } ,
12+ verbose : { type : OptionType . Boolean , alias : "v" , hasSensitiveValue : false } ,
13+ version : { type : OptionType . Boolean , hasSensitiveValue : false } ,
14+ help : { type : OptionType . Boolean , alias : "h" , hasSensitiveValue : false } ,
15+ profileDir : { type : OptionType . String , hasSensitiveValue : true } ,
16+ analyticsClient : { type : OptionType . String , hasSensitiveValue : false } ,
17+ path : { type : OptionType . String , alias : "p" , hasSensitiveValue : true } ,
1818 // This will parse all non-hyphenated values as strings.
19- _ : { type : OptionType . String }
19+ _ : { type : OptionType . String , hasSensitiveValue : false }
2020 } ;
2121
2222 public options : IDictionary < IDashedOption > ;
@@ -41,83 +41,85 @@ export class Options {
4141
4242 private get commonOptions ( ) : IDictionary < IDashedOption > {
4343 return {
44- ipa : { type : OptionType . String } ,
45- frameworkPath : { type : OptionType . String } ,
46- frameworkName : { type : OptionType . String } ,
47- framework : { type : OptionType . String } ,
48- frameworkVersion : { type : OptionType . String } ,
49- forDevice : { type : OptionType . Boolean } ,
50- provision : { type : OptionType . Object } ,
51- client : { type : OptionType . Boolean , default : true } ,
52- env : { type : OptionType . Object } ,
53- production : { type : OptionType . Boolean } ,
54- debugTransport : { type : OptionType . Boolean } ,
55- keyStorePath : { type : OptionType . String } ,
56- keyStorePassword : { type : OptionType . String , } ,
57- keyStoreAlias : { type : OptionType . String } ,
58- keyStoreAliasPassword : { type : OptionType . String } ,
59- ignoreScripts : { type : OptionType . Boolean } ,
60- disableNpmInstall : { type : OptionType . Boolean } ,
61- compileSdk : { type : OptionType . Number } ,
62- port : { type : OptionType . Number } ,
63- copyTo : { type : OptionType . String } ,
64- platformTemplate : { type : OptionType . String } ,
65- js : { type : OptionType . Boolean } ,
66- javascript : { type : OptionType . Boolean } ,
67- ng : { type : OptionType . Boolean } ,
68- angular : { type : OptionType . Boolean } ,
69- vue : { type : OptionType . Boolean } ,
70- vuejs : { type : OptionType . Boolean } ,
71- tsc : { type : OptionType . Boolean } ,
72- ts : { type : OptionType . Boolean } ,
73- typescript : { type : OptionType . Boolean } ,
74- yarn : { type : OptionType . Boolean } ,
75- androidTypings : { type : OptionType . Boolean } ,
76- bundle : { type : OptionType . String } ,
77- all : { type : OptionType . Boolean } ,
78- teamId : { type : OptionType . Object } ,
79- syncAllFiles : { type : OptionType . Boolean , default : false } ,
80- chrome : { type : OptionType . Boolean } ,
81- inspector : { type : OptionType . Boolean } ,
82- clean : { type : OptionType . Boolean } ,
83- watch : { type : OptionType . Boolean , default : true } ,
84- background : { type : OptionType . String } ,
85- username : { type : OptionType . String } ,
86- pluginName : { type : OptionType . String } ,
87- hmr : { type : OptionType . Boolean } ,
88- collection : { type : OptionType . String , alias : "c" } ,
89- json : { type : OptionType . Boolean } ,
90- avd : { type : OptionType . String } ,
91- config : { type : OptionType . Array } ,
92- insecure : { type : OptionType . Boolean , alias : "k" } ,
93- debug : { type : OptionType . Boolean , alias : "d" } ,
94- timeout : { type : OptionType . String } ,
95- device : { type : OptionType . String } ,
96- availableDevices : { type : OptionType . Boolean } ,
97- appid : { type : OptionType . String } ,
98- geny : { type : OptionType . String } ,
99- debugBrk : { type : OptionType . Boolean } ,
100- debugPort : { type : OptionType . Number } ,
101- start : { type : OptionType . Boolean } ,
102- stop : { type : OptionType . Boolean } ,
103- ddi : { type : OptionType . String } , // the path to developer disk image
104- justlaunch : { type : OptionType . Boolean } ,
105- file : { type : OptionType . String } ,
106- force : { type : OptionType . Boolean , alias : "f" } ,
107- companion : { type : OptionType . Boolean } ,
108- emulator : { type : OptionType . Boolean } ,
109- sdk : { type : OptionType . String } ,
110- template : { type : OptionType . String } ,
111- certificate : { type : OptionType . String } ,
112- certificatePassword : { type : OptionType . String } ,
113- release : { type : OptionType . Boolean , alias : "r" } ,
114- var : { type : OptionType . Object } ,
115- default : { type : OptionType . Boolean } ,
116- count : { type : OptionType . Number } ,
117- analyticsLogFile : { type : OptionType . String } ,
118- hooks : { type : OptionType . Boolean , default : true } ,
119- link : { type : OptionType . Boolean , default : false } ,
120- aab : { type : OptionType . Boolean }
44+ ipa : { type : OptionType . String , hasSensitiveValue : true } ,
45+ frameworkPath : { type : OptionType . String , hasSensitiveValue : true } ,
46+ frameworkName : { type : OptionType . String , hasSensitiveValue : false } ,
47+ framework : { type : OptionType . String , hasSensitiveValue : false } ,
48+ frameworkVersion : { type : OptionType . String , hasSensitiveValue : false } ,
49+ forDevice : { type : OptionType . Boolean , hasSensitiveValue : false } ,
50+ provision : { type : OptionType . Object , hasSensitiveValue : true } ,
51+ client : { type : OptionType . Boolean , default : true , hasSensitiveValue : false } ,
52+ env : { type : OptionType . Object , hasSensitiveValue : false } ,
53+ production : { type : OptionType . Boolean , hasSensitiveValue : false } ,
54+ debugTransport : { type : OptionType . Boolean , hasSensitiveValue : false } ,
55+ keyStorePath : { type : OptionType . String , hasSensitiveValue : true } ,
56+ keyStorePassword : { type : OptionType . String , hasSensitiveValue : true } ,
57+ keyStoreAlias : { type : OptionType . String , hasSensitiveValue : true } ,
58+ keyStoreAliasPassword : { type : OptionType . String , hasSensitiveValue : true } ,
59+ ignoreScripts : { type : OptionType . Boolean , hasSensitiveValue : false } ,
60+ disableNpmInstall : { type : OptionType . Boolean , hasSensitiveValue : false } ,
61+ compileSdk : { type : OptionType . Number , hasSensitiveValue : false } ,
62+ port : { type : OptionType . Number , hasSensitiveValue : false } ,
63+ copyTo : { type : OptionType . String , hasSensitiveValue : true } ,
64+ platformTemplate : { type : OptionType . String , hasSensitiveValue : true } ,
65+ js : { type : OptionType . Boolean , hasSensitiveValue : false } ,
66+ javascript : { type : OptionType . Boolean , hasSensitiveValue : false } ,
67+ ng : { type : OptionType . Boolean , hasSensitiveValue : false } ,
68+ angular : { type : OptionType . Boolean , hasSensitiveValue : false } ,
69+ vue : { type : OptionType . Boolean , hasSensitiveValue : false } ,
70+ vuejs : { type : OptionType . Boolean , hasSensitiveValue : false } ,
71+ tsc : { type : OptionType . Boolean , hasSensitiveValue : false } ,
72+ ts : { type : OptionType . Boolean , hasSensitiveValue : false } ,
73+ typescript : { type : OptionType . Boolean , hasSensitiveValue : false } ,
74+ yarn : { type : OptionType . Boolean , hasSensitiveValue : false } ,
75+ androidTypings : { type : OptionType . Boolean , hasSensitiveValue : false } ,
76+ bundle : { type : OptionType . String , hasSensitiveValue : false } ,
77+ all : { type : OptionType . Boolean , hasSensitiveValue : false } ,
78+ teamId : { type : OptionType . Object , hasSensitiveValue : true } ,
79+ syncAllFiles : { type : OptionType . Boolean , default : false , hasSensitiveValue : false } ,
80+ chrome : { type : OptionType . Boolean , hasSensitiveValue : false } ,
81+ inspector : { type : OptionType . Boolean , hasSensitiveValue : false } ,
82+ clean : { type : OptionType . Boolean , hasSensitiveValue : false } ,
83+ watch : { type : OptionType . Boolean , default : true , hasSensitiveValue : false } ,
84+ background : { type : OptionType . String , hasSensitiveValue : false } ,
85+ username : { type : OptionType . String , hasSensitiveValue : true } ,
86+ pluginName : { type : OptionType . String , hasSensitiveValue : false } ,
87+ hmr : { type : OptionType . Boolean , hasSensitiveValue : false } ,
88+ collection : { type : OptionType . String , alias : "c" , hasSensitiveValue : false } ,
89+ json : { type : OptionType . Boolean , hasSensitiveValue : false } ,
90+ avd : { type : OptionType . String , hasSensitiveValue : true } ,
91+ // check not used
92+ config : { type : OptionType . Array , hasSensitiveValue : false } ,
93+ insecure : { type : OptionType . Boolean , alias : "k" , hasSensitiveValue : false } ,
94+ debug : { type : OptionType . Boolean , alias : "d" , hasSensitiveValue : false } ,
95+ timeout : { type : OptionType . String , hasSensitiveValue : false } ,
96+ device : { type : OptionType . String , hasSensitiveValue : true } ,
97+ availableDevices : { type : OptionType . Boolean , hasSensitiveValue : false } ,
98+ appid : { type : OptionType . String , hasSensitiveValue : true } ,
99+ geny : { type : OptionType . String , hasSensitiveValue : true } ,
100+ debugBrk : { type : OptionType . Boolean , hasSensitiveValue : false } ,
101+ debugPort : { type : OptionType . Number , hasSensitiveValue : false } ,
102+ start : { type : OptionType . Boolean , hasSensitiveValue : false } ,
103+ stop : { type : OptionType . Boolean , hasSensitiveValue : false } ,
104+ ddi : { type : OptionType . String , hasSensitiveValue : true } , // the path to developer disk image
105+ justlaunch : { type : OptionType . Boolean , hasSensitiveValue : false } ,
106+ file : { type : OptionType . String , hasSensitiveValue : true } ,
107+ force : { type : OptionType . Boolean , alias : "f" , hasSensitiveValue : false } ,
108+ // remove legacy
109+ companion : { type : OptionType . Boolean , hasSensitiveValue : false } ,
110+ emulator : { type : OptionType . Boolean , hasSensitiveValue : false } ,
111+ sdk : { type : OptionType . String , hasSensitiveValue : false } ,
112+ template : { type : OptionType . String , hasSensitiveValue : true } ,
113+ certificate : { type : OptionType . String , hasSensitiveValue : true } ,
114+ certificatePassword : { type : OptionType . String , hasSensitiveValue : true } ,
115+ release : { type : OptionType . Boolean , alias : "r" , hasSensitiveValue : false } ,
116+ var : { type : OptionType . Object , hasSensitiveValue : true } ,
117+ default : { type : OptionType . Boolean , hasSensitiveValue : false } ,
118+ count : { type : OptionType . Number , hasSensitiveValue : false } ,
119+ analyticsLogFile : { type : OptionType . String , hasSensitiveValue : true } ,
120+ hooks : { type : OptionType . Boolean , default : true , hasSensitiveValue : false } ,
121+ link : { type : OptionType . Boolean , default : false , hasSensitiveValue : false } ,
122+ aab : { type : OptionType . Boolean , hasSensitiveValue : false }
121123 } ;
122124 }
123125
0 commit comments