Skip to content

Commit

Permalink
update cli info
Browse files Browse the repository at this point in the history
  • Loading branch information
rn-h committed May 6, 2024
1 parent 2130609 commit 153ff16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

code-push-go
9 changes: 5 additions & 4 deletions opt/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ func (App) CreateBundle() {

flag.StringVar(&targetVersion, "t", "", "Target version")
flag.StringVar(&appName, "n", "", "AppName")
flag.StringVar(&deployment, "d", "prod", "deployment")
flag.StringVar(&rnDir, "p", "./", "react native project dir")
flag.StringVar(&deployment, "d", "", "DeploymentName")
flag.StringVar(&rnDir, "p", "./", "React native project dir")
flag.Parse()

if targetVersion == "" || appName == "" {
fmt.Println("Usage: code-push-go create_bundle -t <TargetVersion> -n <AppName> -d <deployment>")
if targetVersion == "" || appName == "" || deployment == "" {
fmt.Println("Usage: code-push-go create_bundle -t <TargetVersion> -n <AppName> -d <deployment> -p <*Optional React native project dir>")
return
}
log.Println("Get app info...")
Expand Down Expand Up @@ -393,6 +393,7 @@ func (App) lsDeployment() {
flag.Parse()
if appName == "" {
fmt.Println("Usage: code-push-go app ls_deployment -n <AppName> -k (Show deployment key)")
return
}

createDeploymentInfo := lsDeploymentReq{
Expand Down

0 comments on commit 153ff16

Please sign in to comment.