Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Jan 17, 2025
1 parent 9bf0cac commit eb6fc09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package template

import (
"context"
"errors"
"fmt"
"slices"
"strings"
Expand Down Expand Up @@ -104,7 +105,7 @@ func options() []cmdio.Tuple {

func SelectTemplate(ctx context.Context) (TemplateName, error) {
if !cmdio.IsPromptSupported(ctx) {
return "", fmt.Errorf("prompting is not supported. Please specify the path, name or URL of the template to use")
return "", errors.New("prompting is not supported. Please specify the path, name or URL of the template to use")
}
description, err := cmdio.SelectOrdered(ctx, options(), "Template to use")
if err != nil {
Expand Down

0 comments on commit eb6fc09

Please sign in to comment.