Skip to content

Commit

Permalink
fix: linting issues (#85)
Browse files Browse the repository at this point in the history
* fix: linting issues

* fix: error log nits
  • Loading branch information
mimatache authored Nov 12, 2023
1 parent da70da5 commit 52e70c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ var createCmd = &cobra.Command{
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.Fatal("failed to set the name flag value", err)
}
}

if project.ProjectType == "" {
Expand All @@ -102,7 +105,10 @@ var createCmd = &cobra.Command{
}

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.Fatal("failed to set the framework flag value", err)
}
}

currentWorkingDir, err := os.Getwd()
Expand Down

0 comments on commit 52e70c4

Please sign in to comment.