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() {
4848
4949 flag .StringVar (& targetVersion , "t" , "" , "Target version" )
5050 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" )
5353 flag .Parse ()
5454
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> " )
5757 return
5858 }
5959 log .Println ("Get app info..." )
@@ -393,6 +393,7 @@ func (App) lsDeployment() {
393393 flag .Parse ()
394394 if appName == "" {
395395 fmt .Println ("Usage: code-push-go app ls_deployment -n <AppName> -k (Show deployment key)" )
396+ return
396397 }
397398
398399 createDeploymentInfo := lsDeploymentReq {
You can’t perform that action at this time.
0 commit comments