File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+
2
+ code-push-go
Original file line number Diff line number Diff line change @@ -48,12 +48,12 @@ func (App) CreateBundle() {
48
48
49
49
flag .StringVar (& targetVersion , "t" , "" , "Target version" )
50
50
flag .StringVar (& appName , "n" , "" , "AppName" )
51
- flag .StringVar (& deployment , "d" , "prod " , "deployment " )
52
- flag .StringVar (& rnDir , "p" , "./" , "react native project dir" )
51
+ flag .StringVar (& deployment , "d" , "" , "DeploymentName " )
52
+ flag .StringVar (& rnDir , "p" , "./" , "React native project dir" )
53
53
flag .Parse ()
54
54
55
- if targetVersion == "" || appName == "" {
56
- fmt .Println ("Usage: code-push-go create_bundle -t <TargetVersion> -n <AppName> -d <deployment>" )
55
+ if targetVersion == "" || appName == "" || deployment == "" {
56
+ fmt .Println ("Usage: code-push-go create_bundle -t <TargetVersion> -n <AppName> -d <deployment> -p <*Optional React native project dir> " )
57
57
return
58
58
}
59
59
log .Println ("Get app info..." )
@@ -393,6 +393,7 @@ func (App) lsDeployment() {
393
393
flag .Parse ()
394
394
if appName == "" {
395
395
fmt .Println ("Usage: code-push-go app ls_deployment -n <AppName> -k (Show deployment key)" )
396
+ return
396
397
}
397
398
398
399
createDeploymentInfo := lsDeploymentReq {
You can’t perform that action at this time.
0 commit comments