Skip to content

Commit

Permalink
Fix codefactor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
koddr committed May 18, 2021
1 parent 7e27a6f commit ab4660b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,20 @@ func runCreateCmd(cmd *cobra.Command, args []string) error {
// Start message.
cgapp.ShowMessage(
"",
fmt.Sprintf("Create a new project via Create Go App CLI v%v...", registry.CLIVersion),
fmt.Sprintf(
"Create a new project via Create Go App CLI v%v...",
registry.CLIVersion,
),
true, true,
)

// Start survey.
if useCustomTemplate {
// Custom survey.
if err := survey.Ask(
registry.CustomCreateQuestions, &customCreateAnswers, survey.WithIcons(surveyIconsConfig),
registry.CustomCreateQuestions,
&customCreateAnswers,
survey.WithIcons(surveyIconsConfig),
); err != nil {
return cgapp.ShowError(err.Error())
}
Expand All @@ -58,7 +63,9 @@ func runCreateCmd(cmd *cobra.Command, args []string) error {
} else {
// Default survey.
if err := survey.Ask(
registry.CreateQuestions, &createAnswers, survey.WithIcons(surveyIconsConfig),
registry.CreateQuestions,
&createAnswers,
survey.WithIcons(surveyIconsConfig),
); err != nil {
return cgapp.ShowError(err.Error())
}
Expand Down

0 comments on commit ab4660b

Please sign in to comment.