Skip to content

Commit

Permalink
fix(selection): confirmation text
Browse files Browse the repository at this point in the history
  • Loading branch information
perryrh0dan committed Oct 7, 2024
1 parent c79dd85 commit 0c297ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (

var (
// Version is the released version of passline
version string = "1.13.0"
version string = "1.14.2"
// BuildTime is the time the binary was built
date string
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/selection/selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func ArgOrSelect(ctx context.Context, args ucli.Args, index int, message string,
}

if len(items) == 1 {
fmt.Printf("Selected %s: %s\n", message, items[0])
fmt.Printf("Selected %s: %s\n", message, items[0].Value)
return items[0].Value, nil
}
message = fmt.Sprintf("Please select a %s: ", message)
Expand All @@ -44,7 +44,7 @@ func ArgOrSelect(ctx context.Context, args ucli.Args, index int, message string,
}

terminal.ClearLines(1)
fmt.Printf("%s%s\n", message, items[selection])
fmt.Printf("%s%s\n", message, items[selection].Value)
return items[selection].Value, nil
}

Expand Down

0 comments on commit 0c297ef

Please sign in to comment.