Skip to content

Commit 47b69df

Browse files
Apps Create Command Fix
1 parent 89ae500 commit 47b69df

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

cmd/apps.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@ var appsCreateCmd = &cobra.Command{
139139
if php == "" {
140140
php = output.ReadInput("PHP version (8.3/8.4/8.5)")
141141
}
142+
if repository == "" && !custom {
143+
repository = output.ReadInput("Git repository SSH URL")
144+
}
145+
if branch == "" && !custom {
146+
branch = output.ReadInput("Git branch")
147+
}
148+
149+
if !custom && repository == "" {
150+
output.Error("Repository is required")
151+
return fmt.Errorf("repository is required")
152+
}
142153

143154
body := map[string]interface{}{
144155
"user": user,

0 commit comments

Comments
 (0)