Skip to content

Commit

Permalink
fix(cmd): lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
itschip committed Nov 12, 2023
1 parent eff54b2 commit 6dfa080
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ func createNamePrompt(cmd *cobra.Command, project *program.Project, options *ste
project.ExitCLI(tprogram)

project.ProjectName = options.ProjectName.Output
cmd.Flag("name").Value.Set(project.ProjectName)
err := cmd.Flag("name").Value.Set(project.ProjectName)
if err != nil {
log.Printf("Problem setting project name: %v", err)
cobra.CheckErr(err)
}
}

func createFrameworkPrompt(cmd *cobra.Command, project *program.Project, options *steps.Options) {
Expand All @@ -117,5 +121,9 @@ func createFrameworkPrompt(cmd *cobra.Command, project *program.Project, options
}

project.ProjectType = strings.ToLower(options.ProjectType)
cmd.Flag("framework").Value.Set(project.ProjectType)
err := cmd.Flag("framework").Value.Set(project.ProjectType)
if err != nil {
log.Printf("Problem setting project framework: %v", err)
cobra.CheckErr(err)
}
}

0 comments on commit 6dfa080

Please sign in to comment.