Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmd/lk/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ var (
Name: "create",
Usage: "Bootstrap a new application from a template or through guided creation",
Action: setupTemplate,
Before: requireProject,
ArgsUsage: "`APP_NAME`",
Flags: []cli.Flag{
templateFlag,
Expand Down Expand Up @@ -300,14 +301,15 @@ func setupTemplate(ctx context.Context, cmd *cli.Command) error {
arg := cmd.Args().First()
if arg != "" {
appName = arg
} else {
appName = project.Name
}
}
if appName == "" {
if SkipPrompts(cmd) {
return errors.New("non-interactive mode: provide app name as argument")
}
if project != nil {
appName = project.Name
}
preinstallPrompts = append(preinstallPrompts, huh.NewInput().
Title("Application Name").
Placeholder("my-app").
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
package livekitcli

const (
Version = "2.15.0"
Version = "2.15.1"
)
Loading