Skip to content

Commit

Permalink
chore: Reformat long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Aug 13, 2023
1 parent 5e8d2b3 commit ba985c9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions internal/cmd/interactivetemplatefuncs.go
Expand Up @@ -108,7 +108,11 @@ func (c *Config) promptBoolOnceInteractiveTemplateFunc(
return c.promptBoolInteractiveTemplateFunc(prompt, args...)
}

func (c *Config) promptChoiceInteractiveTemplateFunc(prompt string, choices []any, args ...string) string {
func (c *Config) promptChoiceInteractiveTemplateFunc(
prompt string,
choices []any,
args ...string,
) string {
if len(args) > 1 {
err := fmt.Errorf("want 2 or 3 arguments, got %d", len(args)+2)
panic(err)
Expand All @@ -130,7 +134,13 @@ func (c *Config) promptChoiceInteractiveTemplateFunc(prompt string, choices []an
return value
}

func (c *Config) promptChoiceOnceInteractiveTemplateFunc(m map[string]any, path any, prompt string, choices []any, args ...string) string {
func (c *Config) promptChoiceOnceInteractiveTemplateFunc(
m map[string]any,
path any,
prompt string,
choices []any,
args ...string,
) string {
if len(args) > 1 {
err := fmt.Errorf("want 4 or 5 arguments, got %d", len(args)+4)
panic(err)
Expand Down

0 comments on commit ba985c9

Please sign in to comment.