Skip to content

Commit af97eca

Browse files
srtaalejzimeg
andauthored
Update cmd/project/create.go
Co-authored-by: Eden Zimbelman <[email protected]>
1 parent 7c99f80 commit af97eca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/project/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func runCreateCommand(clients *shared.ClientFactory, cmd *cobra.Command, args []
129129
}
130130

131131
// Prompt for app name if not provided via flag or argument
132-
if appNameArg == "" {
132+
if appNameArg == "" && clients.IO.IsTTY() {
133133
defaultName := create.GenerateRandomAppName()
134134
cmd.Print(style.Secondary(fmt.Sprintf(" Press Enter to use the generated name: %s", defaultName)), "\n")
135135
name, err := clients.IO.InputPrompt(ctx, "Name your app:", iostreams.InputPromptConfig{})

0 commit comments

Comments
 (0)