Skip to content

Commit

Permalink
Merge pull request #1411 from rsteube/gum-spinner-description
Browse files Browse the repository at this point in the history
gum: added spinner description
  • Loading branch information
rsteube authored Nov 19, 2022
2 parents 18d3cc3 + 2135524 commit 4ac8cde
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions completers/gum_completer/cmd/spin.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,20 @@ func _spinCmd() *cobra.Command {
cmd.Flags().String("title.foreground", "", "Foreground Color")

carapace.Gen(cmd).FlagCompletion(carapace.ActionMap{
"align": carapace.ActionValues("left", "right"),
"spinner": carapace.ActionValues("line", "dot", "minidot", "jump", "pulse", "points", "globe", "moon", "monkey", "meter", "hamburger"),
"align": carapace.ActionValues("left", "right"),
"spinner": carapace.ActionValuesDescribed(
"line", "/",
"dot", "⢿",
"minidot", "⠋",
"jump", "⡈",
"pulse", "░",
"points", "●",
"globe", "🌍",
"moon", "🌗",
"monkey", "🙊",
"meter", "▰",
"hamburger", "☲",
),
"spinner.foreground": gum.ActionColors(),
"title.foreground": gum.ActionColors(),
})
Expand Down

0 comments on commit 4ac8cde

Please sign in to comment.