From f5c4671bfbad96bf346bd7e9a21fc4317b4959df Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Dec 2022 17:00:20 +0530 Subject: Adds most of the tools --- gum_0.8.0_Windows_x86_64/LICENSE | 21 + gum_0.8.0_Windows_x86_64/README.md | 567 +++++++++ gum_0.8.0_Windows_x86_64/completions/gum.bash | 1637 +++++++++++++++++++++++++ gum_0.8.0_Windows_x86_64/completions/gum.fish | 686 +++++++++++ gum_0.8.0_Windows_x86_64/completions/gum.zsh | 759 ++++++++++++ gum_0.8.0_Windows_x86_64/gum.exe | Bin 0 -> 26307584 bytes gum_0.8.0_Windows_x86_64/manpages/gum.1.gz | Bin 0 -> 3726 bytes 7 files changed, 3670 insertions(+) create mode 100644 gum_0.8.0_Windows_x86_64/LICENSE create mode 100644 gum_0.8.0_Windows_x86_64/README.md create mode 100644 gum_0.8.0_Windows_x86_64/completions/gum.bash create mode 100644 gum_0.8.0_Windows_x86_64/completions/gum.fish create mode 100644 gum_0.8.0_Windows_x86_64/completions/gum.zsh create mode 100644 gum_0.8.0_Windows_x86_64/gum.exe create mode 100644 gum_0.8.0_Windows_x86_64/manpages/gum.1.gz (limited to 'gum_0.8.0_Windows_x86_64') diff --git a/gum_0.8.0_Windows_x86_64/LICENSE b/gum_0.8.0_Windows_x86_64/LICENSE new file mode 100644 index 0000000..ece3536 --- /dev/null +++ b/gum_0.8.0_Windows_x86_64/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Charmbracelet, Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/gum_0.8.0_Windows_x86_64/README.md b/gum_0.8.0_Windows_x86_64/README.md new file mode 100644 index 0000000..eb1f306 --- /dev/null +++ b/gum_0.8.0_Windows_x86_64/README.md @@ -0,0 +1,567 @@ +Gum +=== + +

+ Gum Image +

+ Latest Release + Go Docs + Build Status +

+ +A tool for glamorous shell scripts. Leverage the power of +[Bubbles](https://github.com/charmbracelet/bubbles) and [Lip +Gloss](https://github.com/charmbracelet/lipgloss) in your scripts and aliases +without writing any Go code! + + + + + Shell running the ./demo.sh script + + +The above example is running from a single shell script ([source](./examples/demo.sh)). + +## Tutorial + +Gum provides highly configurable, ready-to-use utilities to help you write +useful shell scripts and dotfiles aliases with just a few lines of code. + +Let's build a simple script to help you write [Conventional +Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) for your +dotfiles. + +Start with a `#!/bin/sh`. +```bash +#!/bin/sh +``` + +Ask for the commit type with `gum choose`: + +```bash +gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert" +``` + +> Tip: this command itself will print to `stdout` which is not all that useful. +To make use of the command later on you can save the stdout to a `$VARIABLE` or +`file.txt`. + +Prompt for an (optional) scope for the commit: + +```bash +gum input --placeholder "scope" +``` + +Prompt for a commit message: + +```bash +gum input --placeholder "Summary of this change" +``` + +Prompt for a detailed (multi-line) explanation of the changes: + +```bash +gum write --placeholder "Details of this change (CTRL+D to finish)" +``` + +Prompt for a confirmation before committing: +> `gum confirm` exits with status `0` if confirmed and status `1` if cancelled. + +```bash +gum confirm "Commit changes?" && git commit -m "$SUMMARY" -m "$DESCRIPTION" +``` + +Putting it all together... + +```bash +#!/bin/sh +TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert") +SCOPE=$(gum input --placeholder "scope") + +# Since the scope is optional, wrap it in parentheses if it has a value. +test -n "$SCOPE" && SCOPE="($SCOPE)" + +# Pre-populate the input with the type(scope): so that the user may change it +SUMMARY=$(gum input --value "$TYPE$SCOPE: " --placeholder "Summary of this change") +DESCRIPTION=$(gum write --placeholder "Details of this change (CTRL+D to finish)") + +# Commit these changes +gum confirm "Commit changes?" && git commit -m "$SUMMARY" -m "$DESCRIPTION" +``` + + + + + Running the ./examples/commit.sh script to commit to git + + +## Installation + +Use a package manager: + +```bash +# macOS or Linux +brew install gum + +# Arch Linux (btw) +pacman -S gum + +# Nix +nix-env -iA nixpkgs.gum + +# Debian/Ubuntu +echo "deb https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list +curl https://repo.charm.sh/apt/gpg.key | sudo apt-key add - +sudo apt update && sudo apt install gum + +# Fedora +echo '[charm] +name=Charm +baseurl=https://repo.charm.sh/yum/ +enabled=1 +gpgcheck=1 +gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo +sudo yum install gum +``` + +Or download it: + +* [Packages][releases] are available in Debian and RPM formats +* [Binaries][releases] are available for Linux, macOS, and Windows + +Or just install it with `go`: + +```bash +go install github.com/charmbracelet/gum@latest +``` + +[releases]: https://github.com/charmbracelet/gum/releases + +## Customization + +`gum` is designed to be embedded in scripts and supports all sorts of use +cases. Components are configurable and customizable to fit your theme and +use case. + +You can customize with `--flags`. See `gum --help` for a full view of +each command's customization and configuration options. + +For example, let's use an `input` and change the cursor color, prompt color, +prompt indicator, placeholder text, width, and pre-populate the value: + +```bash +gum input --cursor.foreground "#FF0" --prompt.foreground "#0FF" --prompt "* " \ + --placeholder "What's up?" --width 80 --value "Not much, hby?" +``` + +You can also use `ENVIRONMENT_VARIABLES` to customize `gum` by default, this is +useful to keep a consistent theme for all your `gum` commands. + +```bash +export GUM_INPUT_CURSOR_FOREGROUND="#FF0" +export GUM_INPUT_PROMPT_FOREGROUND="#0FF" +export GUM_INPUT_PLACEHOLDER="What's up?" +export GUM_INPUT_PROMPT="* " +export GUM_INPUT_WIDTH=80 + +# Uses values configured through environment variables above but can still be +# overridden with flags. +gum input +``` + + + + + Gum input displaying most customization options + + +## Interaction + +#### Input + +Prompt for input with a simple command. + +```bash +gum input > answer.txt +``` + +Prompt for sensitive input with the `--password` flag. + +```bash +gum input --password > password.txt +``` + + + + + Shell running gum input typing Not much, you? + + +#### Write + +Prompt for some multi-line text. + +Note: `CTRL+D` and `esc` are used to complete text entry. `CTRL+C` will cancel. + +```bash +gum write > story.txt +``` + + + + + Shell running gum write typing a story + + +#### Filter + +Use fuzzy matching to filter a list of values: + +```bash +echo Strawberry >> flavors.txt +echo Banana >> flavors.txt +echo Cherry >> flavors.txt +cat flavors.txt | gum filter > selection.txt +``` + + + + + Shell running gum filter on different bubble gum flavors + + +You can also select multiple items with the `--limit` flag, which determines +the maximum number of items that can be chosen. + +```bash +cat flavors.txt | gum filter --limit 2 +``` + +Or, allow any number of selections with the `--no-limit` flag. + +```bash +cat flavors.txt | gum filter --no-limit +``` + +#### Choose + +Choose an option from a list of choices. + +```bash +echo "Pick a card, any card..." +CARD=$(gum choose --height 15 {{A,K,Q,J},{10..2}}" "{♠,♥,♣,♦}) +echo "Was your card the $CARD?" +``` + +You can also select multiple items with the `--limit` flag, which determines +the maximum of items that can be chosen. + +```bash +echo "Pick your top 5 songs." +cat songs.txt | gum choose --limit 5 +``` + +Or, allow any number of selections with the `--no-limit` flag. + +```bash +echo "What do you need from the grocery store?" +cat foods.txt | gum choose --no-limit +``` + + + + + Shell running gum choose with numbers and gum flavors + + +#### Confirm + +Confirm whether to perform an action. Exits with code `0` (affirmative) or `1` +(negative) depending on selection. + +```bash +gum confirm && rm file.txt || echo "File not removed" +``` + + + + + Shell running gum confirm + + +#### File + +Prompt the user to select a file from the file tree. + +```bash +EDITOR $(gum file $HOME) +``` + + + + + Shell running gum file + + +#### Pager + +Scroll through a long document with line numbers and a fully customizable viewport. + +```bash +gum pager < README.md +``` + + + + + Shell running gum pager + + +#### Spin + +Display a spinner while running a script or command. The spinner will +automatically stop after the given command exits. + +```bash +gum spin --spinner dot --title "Buying Bubble Gum..." -- sleep 5 +``` + + + + + Shell running gum spin while sleeping for 5 seconds + + +Available spinner types include: `line`, `dot`, `minidot`, `jump`, `pulse`, `points`, `globe`, `moon`, `monkey`, `meter`, `hamburger`. + +#### Table + +Select a row from some tabular data. + +```bash +gum table < flavors.csv | cut -d ',' -f 1 +``` + + + + + Shell running gum table + + +## Styling + +#### Style + +Pretty print any string with any layout with one command. + +```bash +gum style \ + --foreground 212 --border-foreground 212 --border double \ + --align center --width 50 --margin "1 2" --padding "2 4" \ + 'Bubble Gum (1¢)' 'So sweet and so fresh!' +``` + + + + + Bubble Gum, So sweet and so fresh! + + +## Layout + +#### Join + +Combine text vertically or horizontally. Use this command with `gum style` to +build layouts and pretty output. + +Tip: Always wrap the output of `gum style` in quotes to preserve newlines +(`\n`) when using it as an argument in the `join` command. + +```bash +I=$(gum style --padding "1 5" --border double --border-foreground 212 "I") +LOVE=$(gum style --padding "1 4" --border double --border-foreground 57 "LOVE") +BUBBLE=$(gum style --padding "1 8" --border double --border-foreground 255 "Bubble") +GUM=$(gum style --padding "1 5" --border double --border-foreground 240 "Gum") + +I_LOVE=$(gum join "$I" "$LOVE") +BUBBLE_GUM=$(gum join "$BUBBLE" "$GUM") +gum join --align center --vertical "$I_LOVE" "$BUBBLE_GUM" +``` + + + + + I LOVE Bubble Gum written out in four boxes with double borders around them. + + +## Format + +`format` processes and formats bodies of text. `gum format` can parse markdown, +template strings, and named emojis. + +```bash +# Format some markdown +gum format -- "# Gum Formats" "- Markdown" "- Code" "- Template" "- Emoji" +echo "# Gum Formats\n- Markdown\n- Code\n- Template\n- Emoji" | gum format + +# Syntax highlight some code +cat main.go | gum format -t code + +# Render text any way you want with templates +echo '{{ Bold "Tasty" }} {{ Italic "Bubble" }} {{ Color "99" "0" " Gum " }}' \ + | gum format -t template + +# Display your favorite emojis! +echo 'I :heart: Bubble Gum :candy:' | gum format -t emoji +``` + +For more information on template helpers, see the [Termenv +docs](https://github.com/muesli/termenv#template-helpers). For a full list of +named emojis see the [GitHub API](https://api.github.com/emojis). + + + + + Running gum format for different types of formats + + +## Examples + +See the [examples](./examples/) directory for more real world use cases. + +How to use `gum` in your daily workflows: + +#### Write a commit message + +Prompt for input to write git commit messages with a short summary and +longer details with `gum input` and `gum write`. + +Bonus points: use `gum filter` with the [Conventional Commits +Specification](https://www.conventionalcommits.org/en/v1.0.0/#summary) as a +prefix for your commit message. + +```bash +git commit -m "$(gum input --width 50 --placeholder "Summary of changes")" \ + -m "$(gum write --width 80 --placeholder "Details of changes (CTRL+D to finish)")" +``` + +#### Open files in your `$EDITOR` + +By default, `gum filter` will display a list of all files (searched +recursively) through your current directory, with some sensible ignore settings +(`.git`, `node_modules`). You can use this command to easily to pick a file and +open it in your `$EDITOR`. + +```bash +$EDITOR $(gum filter) +``` + +#### Connect to a TMUX session + +Pick from a running `tmux` session and attach to it. Or, if you're already in a +`tmux` session, switch sessions. + +```bash +SESSION=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick session...") +tmux switch-client -t $SESSION || tmux attach -t $SESSION +``` + + + + +Picking a tmux session with gum filter + + +#### Pick commit hash from your Git history + +Filter through your git history searching for commit messages, copying the +commit hash of the commit you select. + +```bash +git log --oneline | gum filter | cut -d' ' -f1 # | copy +``` + + + + + Picking a commit with gum filter + + +#### Skate Passwords + +Build a simple (encrypted) password selector with [Skate](https://github.com/charmbracelet/skate). + +Save all your passwords to [Skate](https://github.com/charmbracelet/skate) with `skate set github@pass.db PASSWORD`, etc... + +``` +skate list -k | gum filter | xargs skate get +``` + + + + + Selecting a skate value with gum + + +#### Choose packages to uninstall + +List all packages installed by your package manager (we'll use `brew`) and +choose which packages to uninstall. + +```bash +brew list | gum choose --no-limit | xargs brew uninstall +``` + +#### Choose branches to delete + +List all branches and choose which branches to delete. + +```bash +git branch | cut -c 3- | gum choose --no-limit | xargs git branch -D +``` + +#### Choose pull request to checkout + +List all PRs for the current GitHub repository and checkout the chosen PR (using [`gh`](https://cli.github.com/)). + +```bash +gh pr list | cut -f1,2 | gum choose | cut -f1 | xargs gh pr checkout +``` + +#### Pick command from shell history + +Pick a previously executed command from your shell history to execute, copy, +edit, etc... + +```bash +gum filter < $HISTFILE --height 20 +``` + +#### Sudo password input + +See visual feedback when entering password with masked characters with `gum +input --password`. + +```bash +alias please="gum input --password | sudo -nS" +``` + +## Feedback + +We’d love to hear your thoughts on this project. Feel free to drop us a note! + +* [Twitter](https://twitter.com/charmcli) +* [The Fediverse](https://mastodon.technology/@charm) +* [Slack](https://charm.sh/slack) + +## License + +[MIT](https://github.com/charmbracelet/gum/raw/main/LICENSE) + +--- + +Part of [Charm](https://charm.sh). + +The Charm logo + +Charm热爱开源 • Charm loves open source diff --git a/gum_0.8.0_Windows_x86_64/completions/gum.bash b/gum_0.8.0_Windows_x86_64/completions/gum.bash new file mode 100644 index 0000000..e766cb5 --- /dev/null +++ b/gum_0.8.0_Windows_x86_64/completions/gum.bash @@ -0,0 +1,1637 @@ +# bash completion for gum -*- shell-script -*- + +__gum_debug() +{ + if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then + echo "$*" >> "${BASH_COMP_DEBUG_FILE}" + fi +} + +# Homebrew on Macs have version 1.3 of bash-completion which doesn't include +# _init_completion. This is a very minimal version of that function. +__gum_init_completion() +{ + COMPREPLY=() + _get_comp_words_by_ref "$@" cur prev words cword +} + +__gum_index_of_word() +{ + local w word=$1 + shift + index=0 + for w in "$@"; do + [[ $w = "$word" ]] && return + index=$((index+1)) + done + index=-1 +} + +__gum_contains_word() +{ + local w word=$1; shift + for w in "$@"; do + [[ $w = "$word" ]] && return + done + return 1 +} + +__gum_handle_go_custom_completion() +{ + __gum_debug "${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}" + + local shellCompDirectiveError=1 + local shellCompDirectiveNoSpace=2 + local shellCompDirectiveNoFileComp=4 + local shellCompDirectiveFilterFileExt=8 + local shellCompDirectiveFilterDirs=16 + + local out requestComp lastParam lastChar comp directive args + + # Prepare the command to request completions for the program. + # Calling ${words[0]} instead of directly gum allows to handle aliases + args=("${words[@]:1}") + # Disable ActiveHelp which is not supported for bash completion v1 + requestComp="GUM_ACTIVE_HELP=0 ${words[0]} completion completeNoDesc ${args[*]}" + + lastParam=${words[$((${#words[@]}-1))]} + lastChar=${lastParam:$((${#lastParam}-1)):1} + __gum_debug "${FUNCNAME[0]}: lastParam ${lastParam}, lastChar ${lastChar}" + + if [ -z "${cur}" ] && [ "${lastChar}" != "=" ]; then + # If the last parameter is complete (there is a space following it) + # We add an extra empty parameter so we can indicate this to the go method. + __gum_debug "${FUNCNAME[0]}: Adding extra empty parameter" + requestComp="${requestComp} \"\"" + fi + + __gum_debug "${FUNCNAME[0]}: calling ${requestComp}" + # Use eval to handle any environment variables and such + out=$(eval "${requestComp}" 2>/dev/null) + + # Extract the directive integer at the very end of the output following a colon (:) + directive=${out##*:} + # Remove the directive + out=${out%:*} + if [ "${directive}" = "${out}" ]; then + # There is not directive specified + directive=0 + fi + __gum_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" + __gum_debug "${FUNCNAME[0]}: the completions are: ${out}" + + if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then + # Error code. No completion. + __gum_debug "${FUNCNAME[0]}: received error from custom completion go code" + return + else + if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then + if [[ $(type -t compopt) = "builtin" ]]; then + __gum_debug "${FUNCNAME[0]}: activating no space" + compopt -o nospace + fi + fi + if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then + if [[ $(type -t compopt) = "builtin" ]]; then + __gum_debug "${FUNCNAME[0]}: activating no file completion" + compopt +o default + fi + fi + fi + + if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then + # File extension filtering + local fullFilter filter filteringCmd + # Do not use quotes around the $out variable or else newline + # characters will be kept. + for filter in ${out}; do + fullFilter+="$filter|" + done + + filteringCmd="_filedir $fullFilter" + __gum_debug "File filtering command: $filteringCmd" + $filteringCmd + elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then + # File completion for directories only + local subdir + # Use printf to strip any trailing newline + subdir=$(printf "%s" "${out}") + if [ -n "$subdir" ]; then + __gum_debug "Listing directories in $subdir" + __gum_handle_subdirs_in_dir_flag "$subdir" + else + __gum_debug "Listing directories in ." + _filedir -d + fi + else + while IFS='' read -r comp; do + COMPREPLY+=("$comp") + done < <(compgen -W "${out}" -- "$cur") + fi +} + +__gum_handle_reply() +{ + __gum_debug "${FUNCNAME[0]}" + local comp + case $cur in + -*) + if [[ $(type -t compopt) = "builtin" ]]; then + compopt -o nospace + fi + local allflags + if [ ${#must_have_one_flag[@]} -ne 0 ]; then + allflags=("${must_have_one_flag[@]}") + else + allflags=("${flags[*]} ${two_word_flags[*]}") + fi + while IFS='' read -r comp; do + COMPREPLY+=("$comp") + done < <(compgen -W "${allflags[*]}" -- "$cur") + if [[ $(type -t compopt) = "builtin" ]]; then + [[ "${COMPREPLY[0]}" == *= ]] || compopt +o nospace + fi + + # complete after --flag=abc + if [[ $cur == *=* ]]; then + if [[ $(type -t compopt) = "builtin" ]]; then + compopt +o nospace + fi + + local index flag + flag="${cur%=*}" + __gum_index_of_word "${flag}" "${flags_with_completion[@]}" + COMPREPLY=() + if [[ ${index} -ge 0 ]]; then + PREFIX="" + cur="${cur#*=}" + ${flags_completion[${index}]} + if [ -n "${ZSH_VERSION:-}" ]; then + # zsh completion needs --flag= prefix + eval "COMPREPLY=( \"\${COMPREPLY[@]/#/${flag}=}\" )" + fi + fi + fi + + if [[ -z "${flag_parsing_disabled}" ]]; then + # If flag parsing is enabled, we have completed the flags and can return. + # If flag parsing is disabled, we may not know all (or any) of the flags, so we fallthrough + # to possibly call handle_go_custom_completion. + return 0; + fi + ;; + esac + + # check if we are handling a flag with special work handling + local index + __gum_index_of_word "${prev}" "${flags_with_completion[@]}" + if [[ ${index} -ge 0 ]]; then + ${flags_completion[${index}]} + return + fi + + # we are parsing a flag and don't have a special handler, no completion + if [[ ${cur} != "${words[cword]}" ]]; then + return + fi + + local completions + completions=("${commands[@]}") + if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then + completions+=("${must_have_one_noun[@]}") + elif [[ -n "${has_completion_function}" ]]; then + # if a go completion function is provided, defer to that function + __gum_handle_go_custom_completion + fi + if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then + completions+=("${must_have_one_flag[@]}") + fi + while IFS='' read -r comp; do + COMPREPLY+=("$comp") + done < <(compgen -W "${completions[*]}" -- "$cur") + + if [[ ${#COMPREPLY[@]} -eq 0 && ${#noun_aliases[@]} -gt 0 && ${#must_have_one_noun[@]} -ne 0 ]]; then + while IFS='' read -r comp; do + COMPREPLY+=("$comp") + done < <(compgen -W "${noun_aliases[*]}" -- "$cur") + fi + + if [[ ${#COMPREPLY[@]} -eq 0 ]]; then + if declare -F __gum_custom_func >/dev/null; then + # try command name qualified custom func + __gum_custom_func + else + # otherwise fall back to unqualified for compatibility + declare -F __custom_func >/dev/null && __custom_func + fi + fi + + # available in bash-completion >= 2, not always present on macOS + if declare -F __ltrim_colon_completions >/dev/null; then + __ltrim_colon_completions "$cur" + fi + + # If there is only 1 completion and it is a flag with an = it will be completed + # but we don't want a space after the = + if [[ "${#COMPREPLY[@]}" -eq "1" ]] && [[ $(type -t compopt) = "builtin" ]] && [[ "${COMPREPLY[0]}" == --*= ]]; then + compopt -o nospace + fi +} + +# The arguments should be in the form "ext1|ext2|extn" +__gum_handle_filename_extension_flag() +{ + local ext="$1" + _filedir "@(${ext})" +} + +__gum_handle_subdirs_in_dir_flag() +{ + local dir="$1" + pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 || return +} + +__gum_handle_flag() +{ + __gum_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" + + # if a command required a flag, and we found it, unset must_have_one_flag() + local flagname=${words[c]} + local flagvalue="" + # if the word contained an = + if [[ ${words[c]} == *"="* ]]; then + flagvalue=${flagname#*=} # take in as flagvalue after the = + flagname=${flagname%=*} # strip everything after the = + flagname="${flagname}=" # but put the = back + fi + __gum_debug "${FUNCNAME[0]}: looking for ${flagname}" + if __gum_contains_word "${flagname}" "${must_have_one_flag[@]}"; then + must_have_one_flag=() + fi + + # if you set a flag which only applies to this command, don't show subcommands + if __gum_contains_word "${flagname}" "${local_nonpersistent_flags[@]}"; then + commands=() + fi + + # keep flag value with flagname as flaghash + # flaghash variable is an associative array which is only supported in bash > 3. + if [[ -z "${BASH_VERSION:-}" || "${BASH_VERSINFO[0]:-}" -gt 3 ]]; then + if [ -n "${flagvalue}" ] ; then + flaghash[${flagname}]=${flagvalue} + elif [ -n "${words[ $((c+1)) ]}" ] ; then + flaghash[${flagname}]=${words[ $((c+1)) ]} + else + flaghash[${flagname}]="true" # pad "true" for bool flag + fi + fi + + # skip the argument to a two word flag + if [[ ${words[c]} != *"="* ]] && __gum_contains_word "${words[c]}" "${two_word_flags[@]}"; then + __gum_debug "${FUNCNAME[0]}: found a flag ${words[c]}, skip the next argument" + c=$((c+1)) + # if we are looking for a flags value, don't show commands + if [[ $c -eq $cword ]]; then + commands=() + fi + fi + + c=$((c+1)) + +} + +__gum_handle_noun() +{ + __gum_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" + + if __gum_contains_word "${words[c]}" "${must_have_one_noun[@]}"; then + must_have_one_noun=() + elif __gum_contains_word "${words[c]}" "${noun_aliases[@]}"; then + must_have_one_noun=() + fi + + nouns+=("${words[c]}") + c=$((c+1)) +} + +__gum_handle_command() +{ + __gum_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" + + local next_command + if [[ -n ${last_command} ]]; then + next_command="_${last_command}_${words[c]//:/__}" + else + if [[ $c -eq 0 ]]; then + next_command="_gum_root_command" + else + next_command="_${words[c]//:/__}" + fi + fi + c=$((c+1)) + __gum_debug "${FUNCNAME[0]}: looking for ${next_command}" + declare -F "$next_command" >/dev/null && $next_command +} + +__gum_handle_word() +{ + if [[ $c -ge $cword ]]; then + __gum_handle_reply + return + fi + __gum_debug "${FUNCNAME[0]}: c is $c words[c] is ${words[c]}" + if [[ "${words[c]}" == -* ]]; then + __gum_handle_flag + elif __gum_contains_word "${words[c]}" "${commands[@]}"; then + __gum_handle_command + elif [[ $c -eq 0 ]]; then + __gum_handle_command + elif __gum_contains_word "${words[c]}" "${command_aliases[@]}"; then + # aliashash variable is an associative array which is only supported in bash > 3. + if [[ -z "${BASH_VERSION:-}" || "${BASH_VERSINFO[0]:-}" -gt 3 ]]; then + words[c]=${aliashash[${words[c]}]} + __gum_handle_command + else + __gum_handle_noun + fi + else + __gum_handle_noun + fi + __gum_handle_word +} + +_gum_choose() +{ + last_command="gum_choose" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--limit") + flags+=("--no-limit") + flags+=("--height") + flags+=("--cursor=") + two_word_flags+=("--cursor") + flags+=("--cursor-prefix=") + two_word_flags+=("--cursor-prefix") + flags+=("--selected-prefix=") + two_word_flags+=("--selected-prefix") + flags+=("--unselected-prefix=") + two_word_flags+=("--unselected-prefix") + flags+=("--selected") + flags+=("--cursor.background=") + two_word_flags+=("--cursor.background") + flags+=("--cursor.foreground=") + two_word_flags+=("--cursor.foreground") + flags+=("--cursor.border=") + two_word_flags+=("--cursor.border") + flags+=("--cursor.border-background=") + two_word_flags+=("--cursor.border-background") + flags+=("--cursor.border-foreground=") + two_word_flags+=("--cursor.border-foreground") + flags+=("--cursor.align=") + two_word_flags+=("--cursor.align") + flags+=("--cursor.height") + flags+=("--cursor.width") + flags+=("--cursor.margin=") + two_word_flags+=("--cursor.margin") + flags+=("--cursor.padding=") + two_word_flags+=("--cursor.padding") + flags+=("--cursor.bold") + flags+=("--cursor.faint") + flags+=("--cursor.italic") + flags+=("--cursor.strikethrough") + flags+=("--cursor.underline") + flags+=("--item.background=") + two_word_flags+=("--item.background") + flags+=("--item.foreground=") + two_word_flags+=("--item.foreground") + flags+=("--item.border=") + two_word_flags+=("--item.border") + flags+=("--item.border-background=") + two_word_flags+=("--item.border-background") + flags+=("--item.border-foreground=") + two_word_flags+=("--item.border-foreground") + flags+=("--item.align=") + two_word_flags+=("--item.align") + flags+=("--item.height") + flags+=("--item.width") + flags+=("--item.margin=") + two_word_flags+=("--item.margin") + flags+=("--item.padding=") + two_word_flags+=("--item.padding") + flags+=("--item.bold") + flags+=("--item.faint") + flags+=("--item.italic") + flags+=("--item.strikethrough") + flags+=("--item.underline") + flags+=("--selected.background=") + two_word_flags+=("--selected.background") + flags+=("--selected.foreground=") + two_word_flags+=("--selected.foreground") + flags+=("--selected.border=") + two_word_flags+=("--selected.border") + flags+=("--selected.border-background=") + two_word_flags+=("--selected.border-background") + flags+=("--selected.border-foreground=") + two_word_flags+=("--selected.border-foreground") + flags+=("--selected.align=") + two_word_flags+=("--selected.align") + flags+=("--selected.height") + flags+=("--selected.width") + flags+=("--selected.margin=") + two_word_flags+=("--selected.margin") + flags+=("--selected.padding=") + two_word_flags+=("--selected.padding") + flags+=("--selected.bold") + flags+=("--selected.faint") + flags+=("--selected.italic") + flags+=("--selected.strikethrough") + flags+=("--selected.underline") + + noun_aliases=() +} + +_gum_confirm() +{ + last_command="gum_confirm" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--affirmative=") + two_word_flags+=("--affirmative") + flags+=("--negative=") + two_word_flags+=("--negative") + flags+=("--default") + flags+=("--timeout") + flags+=("--prompt.background=") + two_word_flags+=("--prompt.background") + flags+=("--prompt.foreground=") + two_word_flags+=("--prompt.foreground") + flags+=("--prompt.border=") + two_word_flags+=("--prompt.border") + flags+=("--prompt.border-background=") + two_word_flags+=("--prompt.border-background") + flags+=("--prompt.border-foreground=") + two_word_flags+=("--prompt.border-foreground") + flags+=("--prompt.align=") + two_word_flags+=("--prompt.align") + flags+=("--prompt.height") + flags+=("--prompt.width") + flags+=("--prompt.margin=") + two_word_flags+=("--prompt.margin") + flags+=("--prompt.padding=") + two_word_flags+=("--prompt.padding") + flags+=("--prompt.bold") + flags+=("--prompt.faint") + flags+=("--prompt.italic") + flags+=("--prompt.strikethrough") + flags+=("--prompt.underline") + flags+=("--selected.background=") + two_word_flags+=("--selected.background") + flags+=("--selected.foreground=") + two_word_flags+=("--selected.foreground") + flags+=("--selected.border=") + two_word_flags+=("--selected.border") + flags+=("--selected.border-background=") + two_word_flags+=("--selected.border-background") + flags+=("--selected.border-foreground=") + two_word_flags+=("--selected.border-foreground") + flags+=("--selected.align=") + two_word_flags+=("--selected.align") + flags+=("--selected.height") + flags+=("--selected.width") + flags+=("--selected.margin=") + two_word_flags+=("--selected.margin") + flags+=("--selected.padding=") + two_word_flags+=("--selected.padding") + flags+=("--selected.bold") + flags+=("--selected.faint") + flags+=("--selected.italic") + flags+=("--selected.strikethrough") + flags+=("--selected.underline") + flags+=("--unselected.background=") + two_word_flags+=("--unselected.background") + flags+=("--unselected.foreground=") + two_word_flags+=("--unselected.foreground") + flags+=("--unselected.border=") + two_word_flags+=("--unselected.border") + flags+=("--unselected.border-background=") + two_word_flags+=("--unselected.border-background") + flags+=("--unselected.border-foreground=") + two_word_flags+=("--unselected.border-foreground") + flags+=("--unselected.align=") + two_word_flags+=("--unselected.align") + flags+=("--unselected.height") + flags+=("--unselected.width") + flags+=("--unselected.margin=") + two_word_flags+=("--unselected.margin") + flags+=("--unselected.padding=") + two_word_flags+=("--unselected.padding") + flags+=("--unselected.bold") + flags+=("--unselected.faint") + flags+=("--unselected.italic") + flags+=("--unselected.strikethrough") + flags+=("--unselected.underline") + + noun_aliases=() +} + +_gum_file() +{ + last_command="gum_file" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--cursor=") + two_word_flags+=("--cursor") + two_word_flags+=("-c") + flags+=("--all") + flags+=("-a") + flags+=("--height") + flags+=("--cursor.background=") + two_word_flags+=("--cursor.background") + flags+=("--cursor.foreground=") + two_word_flags+=("--cursor.foreground") + flags+=("--cursor.border=") + two_word_flags+=("--cursor.border") + flags+=("--cursor.border-background=") + two_word_flags+=("--cursor.border-background") + flags+=("--cursor.border-foreground=") + two_word_flags+=("--cursor.border-foreground") + flags+=("--cursor.align=") + two_word_flags+=("--cursor.align") + flags+=("--cursor.height") + flags+=("--cursor.width") + flags+=("--cursor.margin=") + two_word_flags+=("--cursor.margin") + flags+=("--cursor.padding=") + two_word_flags+=("--cursor.padding") + flags+=("--cursor.bold") + flags+=("--cursor.faint") + flags+=("--cursor.italic") + flags+=("--cursor.strikethrough") + flags+=("--cursor.underline") + flags+=("--symlink.background=") + two_word_flags+=("--symlink.background") + flags+=("--symlink.foreground=") + two_word_flags+=("--symlink.foreground") + flags+=("--symlink.border=") + two_word_flags+=("--symlink.border") + flags+=("--symlink.border-background=") + two_word_flags+=("--symlink.border-background") + flags+=("--symlink.border-foreground=") + two_word_flags+=("--symlink.border-foreground") + flags+=("--symlink.align=") + two_word_flags+=("--symlink.align") + flags+=("--symlink.height") + flags+=("--symlink.width") + flags+=("--symlink.margin=") + two_word_flags+=("--symlink.margin") + flags+=("--symlink.padding=") + two_word_flags+=("--symlink.padding") + flags+=("--symlink.bold") + flags+=("--symlink.faint") + flags+=("--symlink.italic") + flags+=("--symlink.strikethrough") + flags+=("--symlink.underline") + flags+=("--directory.background=") + two_word_flags+=("--directory.background") + flags+=("--directory.foreground=") + two_word_flags+=("--directory.foreground") + flags+=("--directory.border=") + two_word_flags+=("--directory.border") + flags+=("--directory.border-background=") + two_word_flags+=("--directory.border-background") + flags+=("--directory.border-foreground=") + two_word_flags+=("--directory.border-foreground") + flags+=("--directory.align=") + two_word_flags+=("--directory.align") + flags+=("--directory.height") + flags+=("--directory.width") + flags+=("--directory.margin=") + two_word_flags+=("--directory.margin") + flags+=("--directory.padding=") + two_word_flags+=("--directory.padding") + flags+=("--directory.bold") + flags+=("--directory.faint") + flags+=("--directory.italic") + flags+=("--directory.strikethrough") + flags+=("--directory.underline") + flags+=("--file.background=") + two_word_flags+=("--file.background") + flags+=("--file.foreground=") + two_word_flags+=("--file.foreground") + flags+=("--file.border=") + two_word_flags+=("--file.border") + flags+=("--file.border-background=") + two_word_flags+=("--file.border-background") + flags+=("--file.border-foreground=") + two_word_flags+=("--file.border-foreground") + flags+=("--file.align=") + two_word_flags+=("--file.align") + flags+=("--file.height") + flags+=("--file.width") + flags+=("--file.margin=") + two_word_flags+=("--file.margin") + flags+=("--file.padding=") + two_word_flags+=("--file.padding") + flags+=("--file.bold") + flags+=("--file.faint") + flags+=("--file.italic") + flags+=("--file.strikethrough") + flags+=("--file.underline") + flags+=("--permissions.background=") + two_word_flags+=("--permissions.background") + flags+=("--permissions.foreground=") + two_word_flags+=("--permissions.foreground") + flags+=("--permissions.border=") + two_word_flags+=("--permissions.border") + flags+=("--permissions.border-background=") + two_word_flags+=("--permissions.border-background") + flags+=("--permissions.border-foreground=") + two_word_flags+=("--permissions.border-foreground") + flags+=("--permissions.align=") + two_word_flags+=("--permissions.align") + flags+=("--permissions.height") + flags+=("--permissions.width") + flags+=("--permissions.margin=") + two_word_flags+=("--permissions.margin") + flags+=("--permissions.padding=") + two_word_flags+=("--permissions.padding") + flags+=("--permissions.bold") + flags+=("--permissions.faint") + flags+=("--permissions.italic") + flags+=("--permissions.strikethrough") + flags+=("--permissions.underline") + flags+=("--selected.background=") + two_word_flags+=("--selected.background") + flags+=("--selected.foreground=") + two_word_flags+=("--selected.foreground") + flags+=("--selected.border=") + two_word_flags+=("--selected.border") + flags+=("--selected.border-background=") + two_word_flags+=("--selected.border-background") + flags+=("--selected.border-foreground=") + two_word_flags+=("--selected.border-foreground") + flags+=("--selected.align=") + two_word_flags+=("--selected.align") + flags+=("--selected.height") + flags+=("--selected.width") + flags+=("--selected.margin=") + two_word_flags+=("--selected.margin") + flags+=("--selected.padding=") + two_word_flags+=("--selected.padding") + flags+=("--selected.bold") + flags+=("--selected.faint") + flags+=("--selected.italic") + flags+=("--selected.strikethrough") + flags+=("--selected.underline") + flags+=("--file-size.background=") + two_word_flags+=("--file-size.background") + flags+=("--file-size.foreground=") + two_word_flags+=("--file-size.foreground") + flags+=("--file-size.border=") + two_word_flags+=("--file-size.border") + flags+=("--file-size.border-background=") + two_word_flags+=("--file-size.border-background") + flags+=("--file-size.border-foreground=") + two_word_flags+=("--file-size.border-foreground") + flags+=("--file-size.align=") + two_word_flags+=("--file-size.align") + flags+=("--file-size.height") + flags+=("--file-size.width") + flags+=("--file-size.margin=") + two_word_flags+=("--file-size.margin") + flags+=("--file-size.padding=") + two_word_flags+=("--file-size.padding") + flags+=("--file-size.bold") + flags+=("--file-size.faint") + flags+=("--file-size.italic") + flags+=("--file-size.strikethrough") + flags+=("--file-size.underline") + + noun_aliases=() +} + +_gum_filter() +{ + last_command="gum_filter" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--indicator=") + two_word_flags+=("--indicator") + flags+=("--indicator.background=") + two_word_flags+=("--indicator.background") + flags+=("--indicator.foreground=") + two_word_flags+=("--indicator.foreground") + flags+=("--indicator.border=") + two_word_flags+=("--indicator.border") + flags+=("--indicator.border-background=") + two_word_flags+=("--indicator.border-background") + flags+=("--indicator.border-foreground=") + two_word_flags+=("--indicator.border-foreground") + flags+=("--indicator.align=") + two_word_flags+=("--indicator.align") + flags+=("--indicator.height") + flags+=("--indicator.width") + flags+=("--indicator.margin=") + two_word_flags+=("--indicator.margin") + flags+=("--indicator.padding=") + two_word_flags+=("--indicator.padding") + flags+=("--indicator.bold") + flags+=("--indicator.faint") + flags+=("--indicator.italic") + flags+=("--indicator.strikethrough") + flags+=("--indicator.underline") + flags+=("--limit") + flags+=("--no-limit") + flags+=("--selected-prefix=") + two_word_flags+=("--selected-prefix") + flags+=("--selected-indicator.background=") + two_word_flags+=("--selected-indicator.background") + flags+=("--selected-indicator.foreground=") + two_word_flags+=("--selected-indicator.foreground") + flags+=("--selected-indicator.border=") + two_word_flags+=("--selected-indicator.border") + flags+=("--selected-indicator.border-background=") + two_word_flags+=("--selected-indicator.border-background") + flags+=("--selected-indicator.border-foreground=") + two_word_flags+=("--selected-indicator.border-foreground") + flags+=("--selected-indicator.align=") + two_word_flags+=("--selected-indicator.align") + flags+=("--selected-indicator.height") + flags+=("--selected-indicator.width") + flags+=("--selected-indicator.margin=") + two_word_flags+=("--selected-indicator.margin") + flags+=("--selected-indicator.padding=") + two_word_flags+=("--selected-indicator.padding") + flags+=("--selected-indicator.bold") + flags+=("--selected-indicator.faint") + flags+=("--selected-indicator.italic") + flags+=("--selected-indicator.strikethrough") + flags+=("--selected-indicator.underline") + flags+=("--unselected-prefix=") + two_word_flags+=("--unselected-prefix") + flags+=("--unselected-prefix.background=") + two_word_flags+=("--unselected-prefix.background") + flags+=("--unselected-prefix.foreground=") + two_word_flags+=("--unselected-prefix.foreground") + flags+=("--unselected-prefix.border=") + two_word_flags+=("--unselected-prefix.border") + flags+=("--unselected-prefix.border-background=") + two_word_flags+=("--unselected-prefix.border-background") + flags+=("--unselected-prefix.border-foreground=") + two_word_flags+=("--unselected-prefix.border-foreground") + flags+=("--unselected-prefix.align=") + two_word_flags+=("--unselected-prefix.align") + flags+=("--unselected-prefix.height") + flags+=("--unselected-prefix.width") + flags+=("--unselected-prefix.margin=") + two_word_flags+=("--unselected-prefix.margin") + flags+=("--unselected-prefix.padding=") + two_word_flags+=("--unselected-prefix.padding") + flags+=("--unselected-prefix.bold") + flags+=("--unselected-prefix.faint") + flags+=("--unselected-prefix.italic") + flags+=("--unselected-prefix.strikethrough") + flags+=("--unselected-prefix.underline") + flags+=("--text.background=") + two_word_flags+=("--text.background") + flags+=("--text.foreground=") + two_word_flags+=("--text.foreground") + flags+=("--text.border=") + two_word_flags+=("--text.border") + flags+=("--text.border-background=") + two_word_flags+=("--text.border-background") + flags+=("--text.border-foreground=") + two_word_flags+=("--text.border-foreground") + flags+=("--text.align=") + two_word_flags+=("--text.align") + flags+=("--text.height") + flags+=("--text.width") + flags+=("--text.margin=") + two_word_flags+=("--text.margin") + flags+=("--text.padding=") + two_word_flags+=("--text.padding") + flags+=("--text.bold") + flags+=("--text.faint") + flags+=("--text.italic") + flags+=("--text.strikethrough") + flags+=("--text.underline") + flags+=("--match.background=") + two_word_flags+=("--match.background") + flags+=("--match.foreground=") + two_word_flags+=("--match.foreground") + flags+=("--match.border=") + two_word_flags+=("--match.border") + flags+=("--match.border-background=") + two_word_flags+=("--match.border-background") + flags+=("--match.border-foreground=") + two_word_flags+=("--match.border-foreground") + flags+=("--match.align=") + two_word_flags+=("--match.align") + flags+=("--match.height") + flags+=("--match.width") + flags+=("--match.margin=") + two_word_flags+=("--match.margin") + flags+=("--match.padding=") + two_word_flags+=("--match.padding") + flags+=("--match.bold") + flags+=("--match.faint") + flags+=("--match.italic") + flags+=("--match.strikethrough") + flags+=("--match.underline") + flags+=("--placeholder=") + two_word_flags+=("--placeholder") + flags+=("--prompt=") + two_word_flags+=("--prompt") + flags+=("--prompt.background=") + two_word_flags+=("--prompt.background") + flags+=("--prompt.foreground=") + two_word_flags+=("--prompt.foreground") + flags+=("--prompt.border=") + two_word_flags+=("--prompt.border") + flags+=("--prompt.border-background=") + two_word_flags+=("--prompt.border-background") + flags+=("--prompt.border-foreground=") + two_word_flags+=("--prompt.border-foreground") + flags+=("--prompt.align=") + two_word_flags+=("--prompt.align") + flags+=("--prompt.height") + flags+=("--prompt.width") + flags+=("--prompt.margin=") + two_word_flags+=("--prompt.margin") + flags+=("--prompt.padding=") + two_word_flags+=("--prompt.padding") + flags+=("--prompt.bold") + flags+=("--prompt.faint") + flags+=("--prompt.italic") + flags+=("--prompt.strikethrough") + flags+=("--prompt.underline") + flags+=("--width") + flags+=("--height") + flags+=("--value=") + two_word_flags+=("--value") + flags+=("--reverse") + + noun_aliases=() +} + +_gum_format() +{ + last_command="gum_format" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--type=") + two_word_flags+=("--type") + two_word_flags+=("-t") + + noun_aliases=() +} + +_gum_input() +{ + last_command="gum_input" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--placeholder=") + two_word_flags+=("--placeholder") + flags+=("--prompt=") + two_word_flags+=("--prompt") + flags+=("--prompt.background=") + two_word_flags+=("--prompt.background") + flags+=("--prompt.foreground=") + two_word_flags+=("--prompt.foreground") + flags+=("--prompt.border=") + two_word_flags+=("--prompt.border") + flags+=("--prompt.border-background=") + two_word_flags+=("--prompt.border-background") + flags+=("--prompt.border-foreground=") + two_word_flags+=("--prompt.border-foreground") + flags+=("--prompt.align=") + two_word_flags+=("--prompt.align") + flags+=("--prompt.height") + flags+=("--prompt.width") + flags+=("--prompt.margin=") + two_word_flags+=("--prompt.margin") + flags+=("--prompt.padding=") + two_word_flags+=("--prompt.padding") + flags+=("--prompt.bold") + flags+=("--prompt.faint") + flags+=("--prompt.italic") + flags+=("--prompt.strikethrough") + flags+=("--prompt.underline") + flags+=("--cursor.background=") + two_word_flags+=("--cursor.background") + flags+=("--cursor.foreground=") + two_word_flags+=("--cursor.foreground") + flags+=("--cursor.border=") + two_word_flags+=("--cursor.border") + flags+=("--cursor.border-background=") + two_word_flags+=("--cursor.border-background") + flags+=("--cursor.border-foreground=") + two_word_flags+=("--cursor.border-foreground") + flags+=("--cursor.align=") + two_word_flags+=("--cursor.align") + flags+=("--cursor.height") + flags+=("--cursor.width") + flags+=("--cursor.margin=") + two_word_flags+=("--cursor.margin") + flags+=("--cursor.padding=") + two_word_flags+=("--cursor.padding") + flags+=("--cursor.bold") + flags+=("--cursor.faint") + flags+=("--cursor.italic") + flags+=("--cursor.strikethrough") + flags+=("--cursor.underline") + flags+=("--value=") + two_word_flags+=("--value") + flags+=("--char-limit") + flags+=("--width") + flags+=("--password") + + noun_aliases=() +} + +_gum_join() +{ + last_command="gum_join" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--align=") + two_word_flags+=("--align") + flags+=("--horizontal") + flags+=("--vertical") + + noun_aliases=() +} + +_gum_pager() +{ + last_command="gum_pager" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--background=") + two_word_flags+=("--background") + flags+=("--foreground=") + two_word_flags+=("--foreground") + flags+=("--border=") + two_word_flags+=("--border") + flags+=("--border-background=") + two_word_flags+=("--border-background") + flags+=("--border-foreground=") + two_word_flags+=("--border-foreground") + flags+=("--align=") + two_word_flags+=("--align") + flags+=("--height") + flags+=("--width") + flags+=("--margin=") + two_word_flags+=("--margin") + flags+=("--padding=") + two_word_flags+=("--padding") + flags+=("--bold") + flags+=("--faint") + flags+=("--italic") + flags+=("--strikethrough") + flags+=("--underline") + flags+=("--help.background=") + two_word_flags+=("--help.background") + flags+=("--help.foreground=") + two_word_flags+=("--help.foreground") + flags+=("--help.border=") + two_word_flags+=("--help.border") + flags+=("--help.border-background=") + two_word_flags+=("--help.border-background") + flags+=("--help.border-foreground=") + two_word_flags+=("--help.border-foreground") + flags+=("--help.align=") + two_word_flags+=("--help.align") + flags+=("--help.height") + flags+=("--help.width") + flags+=("--help.margin=") + two_word_flags+=("--help.margin") + flags+=("--help.padding=") + two_word_flags+=("--help.padding") + flags+=("--help.bold") + flags+=("--help.faint") + flags+=("--help.italic") + flags+=("--help.strikethrough") + flags+=("--help.underline") + flags+=("--show-line-numbers") + flags+=("--line-number.background=") + two_word_flags+=("--line-number.background") + flags+=("--line-number.foreground=") + two_word_flags+=("--line-number.foreground") + flags+=("--line-number.border=") + two_word_flags+=("--line-number.border") + flags+=("--line-number.border-background=") + two_word_flags+=("--line-number.border-background") + flags+=("--line-number.border-foreground=") + two_word_flags+=("--line-number.border-foreground") + flags+=("--line-number.align=") + two_word_flags+=("--line-number.align") + flags+=("--line-number.height") + flags+=("--line-number.width") + flags+=("--line-number.margin=") + two_word_flags+=("--line-number.margin") + flags+=("--line-number.padding=") + two_word_flags+=("--line-number.padding") + flags+=("--line-number.bold") + flags+=("--line-number.faint") + flags+=("--line-number.italic") + flags+=("--line-number.strikethrough") + flags+=("--line-number.underline") + + noun_aliases=() +} + +_gum_spin() +{ + last_command="gum_spin" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--show-output") + flags+=("--spinner=") + two_word_flags+=("--spinner") + two_word_flags+=("-s") + flags+=("--spinner.background=") + two_word_flags+=("--spinner.background") + flags+=("--spinner.foreground=") + two_word_flags+=("--spinner.foreground") + flags+=("--spinner.border=") + two_word_flags+=("--spinner.border") + flags+=("--spinner.border-background=") + two_word_flags+=("--spinner.border-background") + flags+=("--spinner.border-foreground=") + two_word_flags+=("--spinner.border-foreground") + flags+=("--spinner.align=") + two_word_flags+=("--spinner.align") + flags+=("--spinner.height") + flags+=("--spinner.width") + flags+=("--spinner.margin=") + two_word_flags+=("--spinner.margin") + flags+=("--spinner.padding=") + two_word_flags+=("--spinner.padding") + flags+=("--spinner.bold") + flags+=("--spinner.faint") + flags+=("--spinner.italic") + flags+=("--spinner.strikethrough") + flags+=("--spinner.underline") + flags+=("--title=") + two_word_flags+=("--title") + flags+=("--title.background=") + two_word_flags+=("--title.background") + flags+=("--title.foreground=") + two_word_flags+=("--title.foreground") + flags+=("--title.border=") + two_word_flags+=("--title.border") + flags+=("--title.border-background=") + two_word_flags+=("--title.border-background") + flags+=("--title.border-foreground=") + two_word_flags+=("--title.border-foreground") + flags+=("--title.align=") + two_word_flags+=("--title.align") + flags+=("--title.height") + flags+=("--title.width") + flags+=("--title.margin=") + two_word_flags+=("--title.margin") + flags+=("--title.padding=") + two_word_flags+=("--title.padding") + flags+=("--title.bold") + flags+=("--title.faint") + flags+=("--title.italic") + flags+=("--title.strikethrough") + flags+=("--title.underline") + flags+=("--align=") + two_word_flags+=("--align") + two_word_flags+=("-a") + + noun_aliases=() +} + +_gum_style() +{ + last_command="gum_style" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--background=") + two_word_flags+=("--background") + flags+=("--foreground=") + two_word_flags+=("--foreground") + flags+=("--border=") + two_word_flags+=("--border") + flags+=("--border-background=") + two_word_flags+=("--border-background") + flags+=("--border-foreground=") + two_word_flags+=("--border-foreground") + flags+=("--align=") + two_word_flags+=("--align") + flags+=("--height") + flags+=("--width") + flags+=("--margin=") + two_word_flags+=("--margin") + flags+=("--padding=") + two_word_flags+=("--padding") + flags+=("--bold") + flags+=("--faint") + flags+=("--italic") + flags+=("--strikethrough") + flags+=("--underline") + + noun_aliases=() +} + +_gum_table() +{ + last_command="gum_table" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--separator=") + two_word_flags+=("--separator") + two_word_flags+=("-s") + flags+=("--columns") + flags+=("-c") + flags+=("--widths") + flags+=("-w") + flags+=("--height") + flags+=("--cell.background=") + two_word_flags+=("--cell.background") + flags+=("--cell.foreground=") + two_word_flags+=("--cell.foreground") + flags+=("--cell.border=") + two_word_flags+=("--cell.border") + flags+=("--cell.border-background=") + two_word_flags+=("--cell.border-background") + flags+=("--cell.border-foreground=") + two_word_flags+=("--cell.border-foreground") + flags+=("--cell.align=") + two_word_flags+=("--cell.align") + flags+=("--cell.height") + flags+=("--cell.width") + flags+=("--cell.margin=") + two_word_flags+=("--cell.margin") + flags+=("--cell.padding=") + two_word_flags+=("--cell.padding") + flags+=("--cell.bold") + flags+=("--cell.faint") + flags+=("--cell.italic") + flags+=("--cell.strikethrough") + flags+=("--cell.underline") + flags+=("--header.background=") + two_word_flags+=("--header.background") + flags+=("--header.foreground=") + two_word_flags+=("--header.foreground") + flags+=("--header.border=") + two_word_flags+=("--header.border") + flags+=("--header.border-background=") + two_word_flags+=("--header.border-background") + flags+=("--header.border-foreground=") + two_word_flags+=("--header.border-foreground") + flags+=("--header.align=") + two_word_flags+=("--header.align") + flags+=("--header.height") + flags+=("--header.width") + flags+=("--header.margin=") + two_word_flags+=("--header.margin") + flags+=("--header.padding=") + two_word_flags+=("--header.padding") + flags+=("--header.bold") + flags+=("--header.faint") + flags+=("--header.italic") + flags+=("--header.strikethrough") + flags+=("--header.underline") + flags+=("--selected.background=") + two_word_flags+=("--selected.background") + flags+=("--selected.foreground=") + two_word_flags+=("--selected.foreground") + flags+=("--selected.border=") + two_word_flags+=("--selected.border") + flags+=("--selected.border-background=") + two_word_flags+=("--selected.border-background") + flags+=("--selected.border-foreground=") + two_word_flags+=("--selected.border-foreground") + flags+=("--selected.align=") + two_word_flags+=("--selected.align") + flags+=("--selected.height") + flags+=("--selected.width") + flags+=("--selected.margin=") + two_word_flags+=("--selected.margin") + flags+=("--selected.padding=") + two_word_flags+=("--selected.padding") + flags+=("--selected.bold") + flags+=("--selected.faint") + flags+=("--selected.italic") + flags+=("--selected.strikethrough") + flags+=("--selected.underline") + flags+=("--file=") + two_word_flags+=("--file") + two_word_flags+=("-f") + + noun_aliases=() +} + +_gum_write() +{ + last_command="gum_write" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--width") + flags+=("--height") + flags+=("--header=") + two_word_flags+=("--header") + flags+=("--placeholder=") + two_word_flags+=("--placeholder") + flags+=("--prompt=") + two_word_flags+=("--prompt") + flags+=("--show-cursor-line") + flags+=("--show-line-numbers") + flags+=("--value=") + two_word_flags+=("--value") + flags+=("--char-limit") + flags+=("--base.background=") + two_word_flags+=("--base.background") + flags+=("--base.foreground=") + two_word_flags+=("--base.foreground") + flags+=("--base.border=") + two_word_flags+=("--base.border") + flags+=("--base.border-background=") + two_word_flags+=("--base.border-background") + flags+=("--base.border-foreground=") + two_word_flags+=("--base.border-foreground") + flags+=("--base.align=") + two_word_flags+=("--base.align") + flags+=("--base.height") + flags+=("--base.width") + flags+=("--base.margin=") + two_word_flags+=("--base.margin") + flags+=("--base.padding=") + two_word_flags+=("--base.padding") + flags+=("--base.bold") + flags+=("--base.faint") + flags+=("--base.italic") + flags+=("--base.strikethrough") + flags+=("--base.underline") + flags+=("--cursor-line-number.background=") + two_word_flags+=("--cursor-line-number.background") + flags+=("--cursor-line-number.foreground=") + two_word_flags+=("--cursor-line-number.foreground") + flags+=("--cursor-line-number.border=") + two_word_flags+=("--cursor-line-number.border") + flags+=("--cursor-line-number.border-background=") + two_word_flags+=("--cursor-line-number.border-background") + flags+=("--cursor-line-number.border-foreground=") + two_word_flags+=("--cursor-line-number.border-foreground") + flags+=("--cursor-line-number.align=") + two_word_flags+=("--cursor-line-number.align") + flags+=("--cursor-line-number.height") + flags+=("--cursor-line-number.width") + flags+=("--cursor-line-number.margin=") + two_word_flags+=("--cursor-line-number.margin") + flags+=("--cursor-line-number.padding=") + two_word_flags+=("--cursor-line-number.padding") + flags+=("--cursor-line-number.bold") + flags+=("--cursor-line-number.faint") + flags+=("--cursor-line-number.italic") + flags+=("--cursor-line-number.strikethrough") + flags+=("--cursor-line-number.underline") + flags+=("--cursor-line.background=") + two_word_flags+=("--cursor-line.background") + flags+=("--cursor-line.foreground=") + two_word_flags+=("--cursor-line.foreground") + flags+=("--cursor-line.border=") + two_word_flags+=("--cursor-line.border") + flags+=("--cursor-line.border-background=") + two_word_flags+=("--cursor-line.border-background") + flags+=("--cursor-line.border-foreground=") + two_word_flags+=("--cursor-line.border-foreground") + flags+=("--cursor-line.align=") + two_word_flags+=("--cursor-line.align") + flags+=("--cursor-line.height") + flags+=("--cursor-line.width") + flags+=("--cursor-line.margin=") + two_word_flags+=("--cursor-line.margin") + flags+=("--cursor-line.padding=") + two_word_flags+=("--cursor-line.padding") + flags+=("--cursor-line.bold") + flags+=("--cursor-line.faint") + flags+=("--cursor-line.italic") + flags+=("--cursor-line.strikethrough") + flags+=("--cursor-line.underline") + flags+=("--cursor.background=") + two_word_flags+=("--cursor.background") + flags+=("--cursor.foreground=") + two_word_flags+=("--cursor.foreground") + flags+=("--cursor.border=") + two_word_flags+=("--cursor.border") + flags+=("--cursor.border-background=") + two_word_flags+=("--cursor.border-background") + flags+=("--cursor.border-foreground=") + two_word_flags+=("--cursor.border-foreground") + flags+=("--cursor.align=") + two_word_flags+=("--cursor.align") + flags+=("--cursor.height") + flags+=("--cursor.width") + flags+=("--cursor.margin=") + two_word_flags+=("--cursor.margin") + flags+=("--cursor.padding=") + two_word_flags+=("--cursor.padding") + flags+=("--cursor.bold") + flags+=("--cursor.faint") + flags+=("--cursor.italic") + flags+=("--cursor.strikethrough") + flags+=("--cursor.underline") + flags+=("--end-of-buffer.background=") + two_word_flags+=("--end-of-buffer.background") + flags+=("--end-of-buffer.foreground=") + two_word_flags+=("--end-of-buffer.foreground") + flags+=("--end-of-buffer.border=") + two_word_flags+=("--end-of-buffer.border") + flags+=("--end-of-buffer.border-background=") + two_word_flags+=("--end-of-buffer.border-background") + flags+=("--end-of-buffer.border-foreground=") + two_word_flags+=("--end-of-buffer.border-foreground") + flags+=("--end-of-buffer.align=") + two_word_flags+=("--end-of-buffer.align") + flags+=("--end-of-buffer.height") + flags+=("--end-of-buffer.width") + flags+=("--end-of-buffer.margin=") + two_word_flags+=("--end-of-buffer.margin") + flags+=("--end-of-buffer.padding=") + two_word_flags+=("--end-of-buffer.padding") + flags+=("--end-of-buffer.bold") + flags+=("--end-of-buffer.faint") + flags+=("--end-of-buffer.italic") + flags+=("--end-of-buffer.strikethrough") + flags+=("--end-of-buffer.underline") + flags+=("--line-number.background=") + two_word_flags+=("--line-number.background") + flags+=("--line-number.foreground=") + two_word_flags+=("--line-number.foreground") + flags+=("--line-number.border=") + two_word_flags+=("--line-number.border") + flags+=("--line-number.border-background=") + two_word_flags+=("--line-number.border-background") + flags+=("--line-number.border-foreground=") + two_word_flags+=("--line-number.border-foreground") + flags+=("--line-number.align=") + two_word_flags+=("--line-number.align") + flags+=("--line-number.height") + flags+=("--line-number.width") + flags+=("--line-number.margin=") + two_word_flags+=("--line-number.margin") + flags+=("--line-number.padding=") + two_word_flags+=("--line-number.padding") + flags+=("--line-number.bold") + flags+=("--line-number.faint") + flags+=("--line-number.italic") + flags+=("--line-number.strikethrough") + flags+=("--line-number.underline") + flags+=("--header.background=") + two_word_flags+=("--header.background") + flags+=("--header.foreground=") + two_word_flags+=("--header.foreground") + flags+=("--header.border=") + two_word_flags+=("--header.border") + flags+=("--header.border-background=") + two_word_flags+=("--header.border-background") + flags+=("--header.border-foreground=") + two_word_flags+=("--header.border-foreground") + flags+=("--header.align=") + two_word_flags+=("--header.align") + flags+=("--header.height") + flags+=("--header.width") + flags+=("--header.margin=") + two_word_flags+=("--header.margin") + flags+=("--header.padding=") + two_word_flags+=("--header.padding") + flags+=("--header.bold") + flags+=("--header.faint") + flags+=("--header.italic") + flags+=("--header.strikethrough") + flags+=("--header.underline") + flags+=("--placeholder.background=") + two_word_flags+=("--placeholder.background") + flags+=("--placeholder.foreground=") + two_word_flags+=("--placeholder.foreground") + flags+=("--placeholder.border=") + two_word_flags+=("--placeholder.border") + flags+=("--placeholder.border-background=") + two_word_flags+=("--placeholder.border-background") + flags+=("--placeholder.border-foreground=") + two_word_flags+=("--placeholder.border-foreground") + flags+=("--placeholder.align=") + two_word_flags+=("--placeholder.align") + flags+=("--placeholder.height") + flags+=("--placeholder.width") + flags+=("--placeholder.margin=") + two_word_flags+=("--placeholder.margin") + flags+=("--placeholder.padding=") + two_word_flags+=("--placeholder.padding") + flags+=("--placeholder.bold") + flags+=("--placeholder.faint") + flags+=("--placeholder.italic") + flags+=("--placeholder.strikethrough") + flags+=("--placeholder.underline") + flags+=("--prompt.background=") + two_word_flags+=("--prompt.background") + flags+=("--prompt.foreground=") + two_word_flags+=("--prompt.foreground") + flags+=("--prompt.border=") + two_word_flags+=("--prompt.border") + flags+=("--prompt.border-background=") + two_word_flags+=("--prompt.border-background") + flags+=("--prompt.border-foreground=") + two_word_flags+=("--prompt.border-foreground") + flags+=("--prompt.align=") + two_word_flags+=("--prompt.align") + flags+=("--prompt.height") + flags+=("--prompt.width") + flags+=("--prompt.margin=") + two_word_flags+=("--prompt.margin") + flags+=("--prompt.padding=") + two_word_flags+=("--prompt.padding") + flags+=("--prompt.bold") + flags+=("--prompt.faint") + flags+=("--prompt.italic") + flags+=("--prompt.strikethrough") + flags+=("--prompt.underline") + + noun_aliases=() +} + +_gum_root_command() +{ + last_command="gum" + + command_aliases=() + + commands=() + commands+=("choose") + commands+=("confirm") + commands+=("file") + commands+=("filter") + commands+=("format") + commands+=("input") + commands+=("join") + commands+=("pager") + commands+=("spin") + commands+=("style") + commands+=("table") + commands+=("write") + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--help") + flags+=("-h") + flags+=("--version") + flags+=("-v") + + noun_aliases=() +} + +__start_gum() +{ + local cur prev words cword split + declare -A flaghash 2>/dev/null || : + declare -A aliashash 2>/dev/null || : + if declare -F _init_completion >/dev/null 2>&1; then + _init_completion -s || return + else + __gum_init_completion -n "=" || return + fi + + local c=0 + local flag_parsing_disabled= + local flags=() + local two_word_flags=() + local local_nonpersistent_flags=() + local flags_with_completion=() + local flags_completion=() + local commands=("gum") + local command_aliases=() + local must_have_one_flag=() + local must_have_one_noun=() + local has_completion_function="" + local last_command="" + local nouns=() + local noun_aliases=() + + __gum_handle_word +} + +if [[ $(type -t compopt) = "builtin" ]]; then + complete -o default -F __start_gum gum +else + complete -o default -o nospace -F __start_gum gum +fi + +# ex: ts=4 sw=4 et filetype=sh diff --git a/gum_0.8.0_Windows_x86_64/completions/gum.fish b/gum_0.8.0_Windows_x86_64/completions/gum.fish new file mode 100644 index 0000000..c7a8e4e --- /dev/null +++ b/gum_0.8.0_Windows_x86_64/completions/gum.fish @@ -0,0 +1,686 @@ +# Fish shell completion for gum +# Generated by gum completion + +# disable file completion unless explicitly enabled +complete -c gum -f + +# gum +complete -c gum -f -s h -l help -d 'Show context-sensitive help.' +complete -c gum -f -s v -l version -d 'Print the version number' + +# choose +complete -c gum -f -n '__fish_use_subcommand' -a choose -d 'Choose an option from a list of choices' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l limit -d 'Maximum number of options to pick' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l no-limit -d 'Pick unlimited number of options (ignores limit)' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l height -d 'Height of the list' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor -d 'Prefix to show on item that corresponds to the cursor position' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor-prefix -d 'Prefix to show on the cursor item (hidden if limit is 1)' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected-prefix -d 'Prefix to show on selected items (hidden if limit is 1)' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l unselected-prefix -d 'Prefix to show on unselected items (hidden if limit is 1)' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected -d 'Options that should start as selected' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -xa 'none hidden normal rounded thick double' -l cursor.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -xa 'left center right bottom middle top' -l cursor.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l cursor.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l cursor.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l cursor.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l cursor.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l cursor.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l cursor.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -xa 'none hidden normal rounded thick double' -l item.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -xa 'left center right bottom middle top' -l item.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l item.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l item.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l item.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l item.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l item.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l item.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -xa 'none hidden normal rounded thick double' -l selected.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -xa 'left center right bottom middle top' -l selected.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -x -l selected.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l selected.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l selected.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l selected.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l selected.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from choose' -l selected.underline -d 'Underline text' + +# confirm +complete -c gum -f -n '__fish_use_subcommand' -a confirm -d 'Ask a user to confirm an action' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l affirmative -d 'The title of the affirmative action' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l negative -d 'The title of the negative action' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l default -d 'Default confirmation action' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l timeout -d 'Timeout for confirmation' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -xa 'none hidden normal rounded thick double' -l prompt.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -xa 'left center right bottom middle top' -l prompt.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l prompt.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l prompt.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l prompt.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l prompt.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l prompt.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l prompt.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -xa 'none hidden normal rounded thick double' -l selected.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -xa 'left center right bottom middle top' -l selected.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l selected.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l selected.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l selected.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l selected.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l selected.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l selected.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -xa 'none hidden normal rounded thick double' -l unselected.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -xa 'left center right bottom middle top' -l unselected.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -x -l unselected.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l unselected.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l unselected.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l unselected.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l unselected.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from confirm' -l unselected.underline -d 'Underline text' + +# file +complete -c gum -f -n '__fish_use_subcommand' -a file -d 'Pick a file from a folder' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -s c -l cursor -d 'The cursor character' +complete -c gum -f -n '__fish_seen_subcommand_from file' -s a -l all -d 'Show hidden and 'dot' files' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l height -d 'Maximum number of files to display' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'none hidden normal rounded thick double' -l cursor.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'left center right bottom middle top' -l cursor.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l cursor.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l cursor.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l cursor.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l cursor.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l cursor.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l cursor.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'none hidden normal rounded thick double' -l symlink.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'left center right bottom middle top' -l symlink.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l symlink.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l symlink.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l symlink.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l symlink.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l symlink.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l symlink.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'none hidden normal rounded thick double' -l directory.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'left center right bottom middle top' -l directory.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l directory.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l directory.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l directory.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l directory.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l directory.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l directory.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'none hidden normal rounded thick double' -l file.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'left center right bottom middle top' -l file.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'none hidden normal rounded thick double' -l permissions.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'left center right bottom middle top' -l permissions.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l permissions.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l permissions.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l permissions.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l permissions.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l permissions.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l permissions.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'none hidden normal rounded thick double' -l selected.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'left center right bottom middle top' -l selected.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l selected.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l selected.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l selected.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l selected.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l selected.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l selected.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'none hidden normal rounded thick double' -l file-size.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from file' -xa 'left center right bottom middle top' -l file-size.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from file' -x -l file-size.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file-size.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file-size.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file-size.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file-size.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from file' -l file-size.underline -d 'Underline text' + +# filter +complete -c gum -f -n '__fish_use_subcommand' -a filter -d 'Filter items from a list' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator -d 'Character for selection' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'none hidden normal rounded thick double' -l indicator.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'left center right bottom middle top' -l indicator.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l indicator.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l indicator.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l indicator.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l indicator.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l indicator.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l indicator.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l limit -d 'Maximum number of options to pick' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l no-limit -d 'Pick unlimited number of options (ignores limit)' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-prefix -d 'Character to indicate selected items (hidden if limit is 1)' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'none hidden normal rounded thick double' -l selected-indicator.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'left center right bottom middle top' -l selected-indicator.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l selected-indicator.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l selected-indicator.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l selected-indicator.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l selected-indicator.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l selected-indicator.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l selected-indicator.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix -d 'Character to indicate unselected items (hidden if limit is 1)' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'none hidden normal rounded thick double' -l unselected-prefix.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'left center right bottom middle top' -l unselected-prefix.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l unselected-prefix.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l unselected-prefix.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l unselected-prefix.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l unselected-prefix.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l unselected-prefix.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l unselected-prefix.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'none hidden normal rounded thick double' -l text.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'left center right bottom middle top' -l text.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l text.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l text.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l text.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l text.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l text.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l text.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'none hidden normal rounded thick double' -l match.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'left center right bottom middle top' -l match.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l match.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l match.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l match.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l match.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l match.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l match.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l placeholder -d 'Placeholder value' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt -d 'Prompt to display' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'none hidden normal rounded thick double' -l prompt.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -xa 'left center right bottom middle top' -l prompt.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l prompt.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l prompt.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l prompt.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l prompt.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l prompt.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l prompt.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l width -d 'Input width' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l height -d 'Input height' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -x -l value -d 'Initial filter value' +complete -c gum -f -n '__fish_seen_subcommand_from filter' -l reverse -d 'Display from the bottom of the screen' + +# format +complete -c gum -f -n '__fish_use_subcommand' -a format -d 'Format a string using a template' +complete -c gum -f -n '__fish_seen_subcommand_from format' -xa 'markdown template code emoji' -s t -l type -d 'Format to use (markdown,template,code,emoji)' + +# input +complete -c gum -f -n '__fish_use_subcommand' -a input -d 'Prompt for some input' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l placeholder -d 'Placeholder value' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt -d 'Prompt to display' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -xa 'none hidden normal rounded thick double' -l prompt.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -xa 'left center right bottom middle top' -l prompt.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l prompt.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l prompt.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l prompt.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l prompt.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l prompt.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l prompt.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -xa 'none hidden normal rounded thick double' -l cursor.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from input' -xa 'left center right bottom middle top' -l cursor.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l cursor.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l cursor.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l cursor.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l cursor.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l cursor.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l cursor.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l value -d 'Initial value (can also be passed via stdin)' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l char-limit -d 'Maximum value length (0 for no limit)' +complete -c gum -f -n '__fish_seen_subcommand_from input' -x -l width -d 'Input width' +complete -c gum -f -n '__fish_seen_subcommand_from input' -l password -d 'Mask input characters' + +# join +complete -c gum -f -n '__fish_use_subcommand' -a join -d 'Join text vertically or horizontally' +complete -c gum -f -n '__fish_seen_subcommand_from join' -xa 'left center right bottom middle top' -l align -d 'Text alignment' +complete -c gum -f -n '__fish_seen_subcommand_from join' -l horizontal -d 'Join (potentially multi-line) strings horizontally' +complete -c gum -f -n '__fish_seen_subcommand_from join' -l vertical -d 'Join (potentially multi-line) strings vertically' + +# pager +complete -c gum -f -n '__fish_use_subcommand' -a pager -d 'Scroll through a file' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -xa 'none hidden normal rounded thick double' -l border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -xa 'left center right bottom middle top' -l align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -xa 'none hidden normal rounded thick double' -l help.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -xa 'left center right bottom middle top' -l help.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l help.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l help.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l help.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l help.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l help.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l help.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l show-line-numbers -d 'Show line numbers' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -xa 'none hidden normal rounded thick double' -l line-number.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -xa 'left center right bottom middle top' -l line-number.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -x -l line-number.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l line-number.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l line-number.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l line-number.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l line-number.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from pager' -l line-number.underline -d 'Underline text' + +# spin +complete -c gum -f -n '__fish_use_subcommand' -a spin -d 'Display spinner while running a command' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l show-output -d 'Show output of command' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -xa 'line dot minidot jump pulse points globe moon monkey meter hamburger' -s s -l spinner -d 'Spinner type' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -xa 'none hidden normal rounded thick double' -l spinner.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -xa 'left center right bottom middle top' -l spinner.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l spinner.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l spinner.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l spinner.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l spinner.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l spinner.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l spinner.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title -d 'Text to display to user while spinning' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -xa 'none hidden normal rounded thick double' -l title.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -xa 'left center right bottom middle top' -l title.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -x -l title.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l title.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l title.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l title.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l title.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -l title.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from spin' -xa 'left right' -s a -l align -d 'Alignment of spinner with regard to the title' + +# style +complete -c gum -f -n '__fish_use_subcommand' -a style -d 'Apply coloring, borders, spacing to text' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from style' -xa 'none hidden normal rounded thick double' -l border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from style' -xa 'left center right bottom middle top' -l align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from style' -x -l padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from style' -l bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from style' -l faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from style' -l italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from style' -l strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from style' -l underline -d 'Underline text' + +# table +complete -c gum -f -n '__fish_use_subcommand' -a table -d 'Render a table of data' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -s s -l separator -d 'Row separator' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -s c -l columns -d 'Column names' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -s w -l widths -d 'Column widths' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l height -d 'Table height' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -xa 'none hidden normal rounded thick double' -l cell.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -xa 'left center right bottom middle top' -l cell.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l cell.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l cell.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l cell.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l cell.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l cell.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l cell.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -xa 'none hidden normal rounded thick double' -l header.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -xa 'left center right bottom middle top' -l header.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l header.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l header.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l header.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l header.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l header.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l header.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -xa 'none hidden normal rounded thick double' -l selected.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from table' -xa 'left center right bottom middle top' -l selected.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -l selected.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l selected.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l selected.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l selected.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l selected.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -l selected.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from table' -x -s f -l file -d 'file path' + +# write +complete -c gum -f -n '__fish_use_subcommand' -a write -d 'Prompt for long-form text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l width -d 'Text area width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l height -d 'Text area height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header -d 'Header value' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder -d 'Placeholder value' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt -d 'Prompt to display' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l show-cursor-line -d 'Show cursor line' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l show-line-numbers -d 'Show line numbers' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l value -d 'Initial value (can be passed via stdin)' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l char-limit -d 'Maximum value length (0 for no limit)' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l base.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l base.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l base.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l base.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l base.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l base.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l base.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l base.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l cursor-line-number.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l cursor-line-number.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line-number.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line-number.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line-number.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line-number.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line-number.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line-number.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l cursor-line.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l cursor-line.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor-line.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor-line.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l cursor.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l cursor.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l cursor.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l cursor.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l end-of-buffer.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l end-of-buffer.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l end-of-buffer.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l end-of-buffer.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l end-of-buffer.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l end-of-buffer.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l end-of-buffer.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l end-of-buffer.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l line-number.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l line-number.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l line-number.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l line-number.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l line-number.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l line-number.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l line-number.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l line-number.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l header.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l header.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l header.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l header.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l header.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l header.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l header.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l header.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l placeholder.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l placeholder.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l placeholder.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l placeholder.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l placeholder.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l placeholder.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l placeholder.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l placeholder.underline -d 'Underline text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.background -d 'Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.foreground -d 'Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'none hidden normal rounded thick double' -l prompt.border -d 'Border Style' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.border-background -d 'Border Background Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.border-foreground -d 'Border Foreground Color' +complete -c gum -f -n '__fish_seen_subcommand_from write' -xa 'left center right bottom middle top' -l prompt.align -d 'Text Alignment' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.height -d 'Text height' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.width -d 'Text width' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.margin -d 'Text margin' +complete -c gum -f -n '__fish_seen_subcommand_from write' -x -l prompt.padding -d 'Text padding' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l prompt.bold -d 'Bold text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l prompt.faint -d 'Faint text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l prompt.italic -d 'Italicize text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l prompt.strikethrough -d 'Strikethrough text' +complete -c gum -f -n '__fish_seen_subcommand_from write' -l prompt.underline -d 'Underline text' + diff --git a/gum_0.8.0_Windows_x86_64/completions/gum.zsh b/gum_0.8.0_Windows_x86_64/completions/gum.zsh new file mode 100644 index 0000000..d3822e3 --- /dev/null +++ b/gum_0.8.0_Windows_x86_64/completions/gum.zsh @@ -0,0 +1,759 @@ +#compdef gum +# zsh completion for gum +# generated by gum completion + +_gum_choose() { + _arguments -C \ + "--limit=[Maximum number of options to pick]:maximum number of options to pick:" \ + "--no-limit[Pick unlimited number of options (ignores limit)]" \ + "--height=[Height of the list]:height of the list:" \ + "--cursor=[Prefix to show on item that corresponds to the cursor position]:prefix to show on item that corresponds to the cursor position:" \ + "--cursor-prefix=[Prefix to show on the cursor item (hidden if limit is 1)]:prefix to show on the cursor item (hidden if limit is 1):" \ + "--selected-prefix=[Prefix to show on selected items (hidden if limit is 1)]:prefix to show on selected items (hidden if limit is 1):" \ + "--unselected-prefix=[Prefix to show on unselected items (hidden if limit is 1)]:prefix to show on unselected items (hidden if limit is 1):" \ + "--selected=[Options that should start as selected]:options that should start as selected:" \ + "--cursor.background=[Background Color]:background color:" \ + "--cursor.foreground=[Foreground Color]:foreground color:" \ + "--cursor.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--cursor.border-background=[Border Background Color]:border background color:" \ + "--cursor.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--cursor.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--cursor.height=[Text height]:text height:" \ + "--cursor.width=[Text width]:text width:" \ + "--cursor.margin=[Text margin]:text margin:" \ + "--cursor.padding=[Text padding]:text padding:" \ + "--cursor.bold[Bold text]" \ + "--cursor.faint[Faint text]" \ + "--cursor.italic[Italicize text]" \ + "--cursor.strikethrough[Strikethrough text]" \ + "--cursor.underline[Underline text]" \ + "--item.background=[Background Color]:background color:" \ + "--item.foreground=[Foreground Color]:foreground color:" \ + "--item.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--item.border-background=[Border Background Color]:border background color:" \ + "--item.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--item.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--item.height=[Text height]:text height:" \ + "--item.width=[Text width]:text width:" \ + "--item.margin=[Text margin]:text margin:" \ + "--item.padding=[Text padding]:text padding:" \ + "--item.bold[Bold text]" \ + "--item.faint[Faint text]" \ + "--item.italic[Italicize text]" \ + "--item.strikethrough[Strikethrough text]" \ + "--item.underline[Underline text]" \ + "--selected.background=[Background Color]:background color:" \ + "--selected.foreground=[Foreground Color]:foreground color:" \ + "--selected.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--selected.border-background=[Border Background Color]:border background color:" \ + "--selected.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--selected.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--selected.height=[Text height]:text height:" \ + "--selected.width=[Text width]:text width:" \ + "--selected.margin=[Text margin]:text margin:" \ + "--selected.padding=[Text padding]:text padding:" \ + "--selected.bold[Bold text]" \ + "--selected.faint[Faint text]" \ + "--selected.italic[Italicize text]" \ + "--selected.strikethrough[Strikethrough text]" \ + "--selected.underline[Underline text]" +} + +_gum_confirm() { + _arguments -C \ + "--affirmative=[The title of the affirmative action]:the title of the affirmative action:" \ + "--negative=[The title of the negative action]:the title of the negative action:" \ + "--default[Default confirmation action]" \ + "--timeout=[Timeout for confirmation]:timeout for confirmation:" \ + "--prompt.background=[Background Color]:background color:" \ + "--prompt.foreground=[Foreground Color]:foreground color:" \ + "--prompt.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--prompt.border-background=[Border Background Color]:border background color:" \ + "--prompt.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--prompt.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--prompt.height=[Text height]:text height:" \ + "--prompt.width=[Text width]:text width:" \ + "--prompt.margin=[Text margin]:text margin:" \ + "--prompt.padding=[Text padding]:text padding:" \ + "--prompt.bold[Bold text]" \ + "--prompt.faint[Faint text]" \ + "--prompt.italic[Italicize text]" \ + "--prompt.strikethrough[Strikethrough text]" \ + "--prompt.underline[Underline text]" \ + "--selected.background=[Background Color]:background color:" \ + "--selected.foreground=[Foreground Color]:foreground color:" \ + "--selected.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--selected.border-background=[Border Background Color]:border background color:" \ + "--selected.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--selected.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--selected.height=[Text height]:text height:" \ + "--selected.width=[Text width]:text width:" \ + "--selected.margin=[Text margin]:text margin:" \ + "--selected.padding=[Text padding]:text padding:" \ + "--selected.bold[Bold text]" \ + "--selected.faint[Faint text]" \ + "--selected.italic[Italicize text]" \ + "--selected.strikethrough[Strikethrough text]" \ + "--selected.underline[Underline text]" \ + "--unselected.background=[Background Color]:background color:" \ + "--unselected.foreground=[Foreground Color]:foreground color:" \ + "--unselected.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--unselected.border-background=[Border Background Color]:border background color:" \ + "--unselected.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--unselected.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--unselected.height=[Text height]:text height:" \ + "--unselected.width=[Text width]:text width:" \ + "--unselected.margin=[Text margin]:text margin:" \ + "--unselected.padding=[Text padding]:text padding:" \ + "--unselected.bold[Bold text]" \ + "--unselected.faint[Faint text]" \ + "--unselected.italic[Italicize text]" \ + "--unselected.strikethrough[Strikethrough text]" \ + "--unselected.underline[Underline text]" +} + +_gum_file() { + _arguments -C \ + '(-c --cursor=)'{-c,--cursor=}"[The cursor character]:the cursor character:" \ + '(-a --all)'{-a,--all}"[Show hidden and 'dot' files]" \ + "--height=[Maximum number of files to display]:maximum number of files to display:" \ + "--cursor.background=[Background Color]:background color:" \ + "--cursor.foreground=[Foreground Color]:foreground color:" \ + "--cursor.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--cursor.border-background=[Border Background Color]:border background color:" \ + "--cursor.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--cursor.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--cursor.height=[Text height]:text height:" \ + "--cursor.width=[Text width]:text width:" \ + "--cursor.margin=[Text margin]:text margin:" \ + "--cursor.padding=[Text padding]:text padding:" \ + "--cursor.bold[Bold text]" \ + "--cursor.faint[Faint text]" \ + "--cursor.italic[Italicize text]" \ + "--cursor.strikethrough[Strikethrough text]" \ + "--cursor.underline[Underline text]" \ + "--symlink.background=[Background Color]:background color:" \ + "--symlink.foreground=[Foreground Color]:foreground color:" \ + "--symlink.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--symlink.border-background=[Border Background Color]:border background color:" \ + "--symlink.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--symlink.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--symlink.height=[Text height]:text height:" \ + "--symlink.width=[Text width]:text width:" \ + "--symlink.margin=[Text margin]:text margin:" \ + "--symlink.padding=[Text padding]:text padding:" \ + "--symlink.bold[Bold text]" \ + "--symlink.faint[Faint text]" \ + "--symlink.italic[Italicize text]" \ + "--symlink.strikethrough[Strikethrough text]" \ + "--symlink.underline[Underline text]" \ + "--directory.background=[Background Color]:background color:" \ + "--directory.foreground=[Foreground Color]:foreground color:" \ + "--directory.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--directory.border-background=[Border Background Color]:border background color:" \ + "--directory.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--directory.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--directory.height=[Text height]:text height:" \ + "--directory.width=[Text width]:text width:" \ + "--directory.margin=[Text margin]:text margin:" \ + "--directory.padding=[Text padding]:text padding:" \ + "--directory.bold[Bold text]" \ + "--directory.faint[Faint text]" \ + "--directory.italic[Italicize text]" \ + "--directory.strikethrough[Strikethrough text]" \ + "--directory.underline[Underline text]" \ + "--file.background=[Background Color]:background color:" \ + "--file.foreground=[Foreground Color]:foreground color:" \ + "--file.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--file.border-background=[Border Background Color]:border background color:" \ + "--file.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--file.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--file.height=[Text height]:text height:" \ + "--file.width=[Text width]:text width:" \ + "--file.margin=[Text margin]:text margin:" \ + "--file.padding=[Text padding]:text padding:" \ + "--file.bold[Bold text]" \ + "--file.faint[Faint text]" \ + "--file.italic[Italicize text]" \ + "--file.strikethrough[Strikethrough text]" \ + "--file.underline[Underline text]" \ + "--permissions.background=[Background Color]:background color:" \ + "--permissions.foreground=[Foreground Color]:foreground color:" \ + "--permissions.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--permissions.border-background=[Border Background Color]:border background color:" \ + "--permissions.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--permissions.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--permissions.height=[Text height]:text height:" \ + "--permissions.width=[Text width]:text width:" \ + "--permissions.margin=[Text margin]:text margin:" \ + "--permissions.padding=[Text padding]:text padding:" \ + "--permissions.bold[Bold text]" \ + "--permissions.faint[Faint text]" \ + "--permissions.italic[Italicize text]" \ + "--permissions.strikethrough[Strikethrough text]" \ + "--permissions.underline[Underline text]" \ + "--selected.background=[Background Color]:background color:" \ + "--selected.foreground=[Foreground Color]:foreground color:" \ + "--selected.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--selected.border-background=[Border Background Color]:border background color:" \ + "--selected.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--selected.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--selected.height=[Text height]:text height:" \ + "--selected.width=[Text width]:text width:" \ + "--selected.margin=[Text margin]:text margin:" \ + "--selected.padding=[Text padding]:text padding:" \ + "--selected.bold[Bold text]" \ + "--selected.faint[Faint text]" \ + "--selected.italic[Italicize text]" \ + "--selected.strikethrough[Strikethrough text]" \ + "--selected.underline[Underline text]" \ + "--file-size.background=[Background Color]:background color:" \ + "--file-size.foreground=[Foreground Color]:foreground color:" \ + "--file-size.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--file-size.border-background=[Border Background Color]:border background color:" \ + "--file-size.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--file-size.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--file-size.height=[Text height]:text height:" \ + "--file-size.width=[Text width]:text width:" \ + "--file-size.margin=[Text margin]:text margin:" \ + "--file-size.padding=[Text padding]:text padding:" \ + "--file-size.bold[Bold text]" \ + "--file-size.faint[Faint text]" \ + "--file-size.italic[Italicize text]" \ + "--file-size.strikethrough[Strikethrough text]" \ + "--file-size.underline[Underline text]" +} + +_gum_filter() { + _arguments -C \ + "--indicator=[Character for selection]:character for selection:" \ + "--indicator.background=[Background Color]:background color:" \ + "--indicator.foreground=[Foreground Color]:foreground color:" \ + "--indicator.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--indicator.border-background=[Border Background Color]:border background color:" \ + "--indicator.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--indicator.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--indicator.height=[Text height]:text height:" \ + "--indicator.width=[Text width]:text width:" \ + "--indicator.margin=[Text margin]:text margin:" \ + "--indicator.padding=[Text padding]:text padding:" \ + "--indicator.bold[Bold text]" \ + "--indicator.faint[Faint text]" \ + "--indicator.italic[Italicize text]" \ + "--indicator.strikethrough[Strikethrough text]" \ + "--indicator.underline[Underline text]" \ + "--limit=[Maximum number of options to pick]:maximum number of options to pick:" \ + "--no-limit[Pick unlimited number of options (ignores limit)]" \ + "--selected-prefix=[Character to indicate selected items (hidden if limit is 1)]:character to indicate selected items (hidden if limit is 1):" \ + "--selected-indicator.background=[Background Color]:background color:" \ + "--selected-indicator.foreground=[Foreground Color]:foreground color:" \ + "--selected-indicator.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--selected-indicator.border-background=[Border Background Color]:border background color:" \ + "--selected-indicator.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--selected-indicator.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--selected-indicator.height=[Text height]:text height:" \ + "--selected-indicator.width=[Text width]:text width:" \ + "--selected-indicator.margin=[Text margin]:text margin:" \ + "--selected-indicator.padding=[Text padding]:text padding:" \ + "--selected-indicator.bold[Bold text]" \ + "--selected-indicator.faint[Faint text]" \ + "--selected-indicator.italic[Italicize text]" \ + "--selected-indicator.strikethrough[Strikethrough text]" \ + "--selected-indicator.underline[Underline text]" \ + "--unselected-prefix=[Character to indicate unselected items (hidden if limit is 1)]:character to indicate unselected items (hidden if limit is 1):" \ + "--unselected-prefix.background=[Background Color]:background color:" \ + "--unselected-prefix.foreground=[Foreground Color]:foreground color:" \ + "--unselected-prefix.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--unselected-prefix.border-background=[Border Background Color]:border background color:" \ + "--unselected-prefix.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--unselected-prefix.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--unselected-prefix.height=[Text height]:text height:" \ + "--unselected-prefix.width=[Text width]:text width:" \ + "--unselected-prefix.margin=[Text margin]:text margin:" \ + "--unselected-prefix.padding=[Text padding]:text padding:" \ + "--unselected-prefix.bold[Bold text]" \ + "--unselected-prefix.faint[Faint text]" \ + "--unselected-prefix.italic[Italicize text]" \ + "--unselected-prefix.strikethrough[Strikethrough text]" \ + "--unselected-prefix.underline[Underline text]" \ + "--text.background=[Background Color]:background color:" \ + "--text.foreground=[Foreground Color]:foreground color:" \ + "--text.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--text.border-background=[Border Background Color]:border background color:" \ + "--text.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--text.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--text.height=[Text height]:text height:" \ + "--text.width=[Text width]:text width:" \ + "--text.margin=[Text margin]:text margin:" \ + "--text.padding=[Text padding]:text padding:" \ + "--text.bold[Bold text]" \ + "--text.faint[Faint text]" \ + "--text.italic[Italicize text]" \ + "--text.strikethrough[Strikethrough text]" \ + "--text.underline[Underline text]" \ + "--match.background=[Background Color]:background color:" \ + "--match.foreground=[Foreground Color]:foreground color:" \ + "--match.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--match.border-background=[Border Background Color]:border background color:" \ + "--match.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--match.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--match.height=[Text height]:text height:" \ + "--match.width=[Text width]:text width:" \ + "--match.margin=[Text margin]:text margin:" \ + "--match.padding=[Text padding]:text padding:" \ + "--match.bold[Bold text]" \ + "--match.faint[Faint text]" \ + "--match.italic[Italicize text]" \ + "--match.strikethrough[Strikethrough text]" \ + "--match.underline[Underline text]" \ + "--placeholder=[Placeholder value]:placeholder value:" \ + "--prompt=[Prompt to display]:prompt to display:" \ + "--prompt.background=[Background Color]:background color:" \ + "--prompt.foreground=[Foreground Color]:foreground color:" \ + "--prompt.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--prompt.border-background=[Border Background Color]:border background color:" \ + "--prompt.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--prompt.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--prompt.height=[Text height]:text height:" \ + "--prompt.width=[Text width]:text width:" \ + "--prompt.margin=[Text margin]:text margin:" \ + "--prompt.padding=[Text padding]:text padding:" \ + "--prompt.bold[Bold text]" \ + "--prompt.faint[Faint text]" \ + "--prompt.italic[Italicize text]" \ + "--prompt.strikethrough[Strikethrough text]" \ + "--prompt.underline[Underline text]" \ + "--width=[Input width]:input width:" \ + "--height=[Input height]:input height:" \ + "--value=[Initial filter value]:initial filter value:" \ + "--reverse[Display from the bottom of the screen]" +} + +_gum_format() { + _arguments -C \ + '(-t --type=)'{-t,--type=}"[Format to use (markdown,template,code,emoji)]:format to use (markdown,template,code,emoji):(markdown template code emoji)" +} + +_gum_input() { + _arguments -C \ + "--placeholder=[Placeholder value]:placeholder value:" \ + "--prompt=[Prompt to display]:prompt to display:" \ + "--prompt.background=[Background Color]:background color:" \ + "--prompt.foreground=[Foreground Color]:foreground color:" \ + "--prompt.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--prompt.border-background=[Border Background Color]:border background color:" \ + "--prompt.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--prompt.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--prompt.height=[Text height]:text height:" \ + "--prompt.width=[Text width]:text width:" \ + "--prompt.margin=[Text margin]:text margin:" \ + "--prompt.padding=[Text padding]:text padding:" \ + "--prompt.bold[Bold text]" \ + "--prompt.faint[Faint text]" \ + "--prompt.italic[Italicize text]" \ + "--prompt.strikethrough[Strikethrough text]" \ + "--prompt.underline[Underline text]" \ + "--cursor.background=[Background Color]:background color:" \ + "--cursor.foreground=[Foreground Color]:foreground color:" \ + "--cursor.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--cursor.border-background=[Border Background Color]:border background color:" \ + "--cursor.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--cursor.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--cursor.height=[Text height]:text height:" \ + "--cursor.width=[Text width]:text width:" \ + "--cursor.margin=[Text margin]:text margin:" \ + "--cursor.padding=[Text padding]:text padding:" \ + "--cursor.bold[Bold text]" \ + "--cursor.faint[Faint text]" \ + "--cursor.italic[Italicize text]" \ + "--cursor.strikethrough[Strikethrough text]" \ + "--cursor.underline[Underline text]" \ + "--value=[Initial value (can also be passed via stdin)]:initial value (can also be passed via stdin):" \ + "--char-limit=[Maximum value length (0 for no limit)]:maximum value length (0 for no limit):" \ + "--width=[Input width]:input width:" \ + "--password[Mask input characters]" +} + +_gum_join() { + _arguments -C \ + "--align=[Text alignment]:text alignment:(left center right bottom middle top)" \ + "--horizontal[Join (potentially multi-line) strings horizontally]" \ + "--vertical[Join (potentially multi-line) strings vertically]" +} + +_gum_pager() { + _arguments -C \ + "--background=[Background Color]:background color:" \ + "--foreground=[Foreground Color]:foreground color:" \ + "--border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--border-background=[Border Background Color]:border background color:" \ + "--border-foreground=[Border Foreground Color]:border foreground color:" \ + "--align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--height=[Text height]:text height:" \ + "--width=[Text width]:text width:" \ + "--margin=[Text margin]:text margin:" \ + "--padding=[Text padding]:text padding:" \ + "--bold[Bold text]" \ + "--faint[Faint text]" \ + "--italic[Italicize text]" \ + "--strikethrough[Strikethrough text]" \ + "--underline[Underline text]" \ + "--help.background=[Background Color]:background color:" \ + "--help.foreground=[Foreground Color]:foreground color:" \ + "--help.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--help.border-background=[Border Background Color]:border background color:" \ + "--help.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--help.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--help.height=[Text height]:text height:" \ + "--help.width=[Text width]:text width:" \ + "--help.margin=[Text margin]:text margin:" \ + "--help.padding=[Text padding]:text padding:" \ + "--help.bold[Bold text]" \ + "--help.faint[Faint text]" \ + "--help.italic[Italicize text]" \ + "--help.strikethrough[Strikethrough text]" \ + "--help.underline[Underline text]" \ + "--show-line-numbers[Show line numbers]" \ + "--line-number.background=[Background Color]:background color:" \ + "--line-number.foreground=[Foreground Color]:foreground color:" \ + "--line-number.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--line-number.border-background=[Border Background Color]:border background color:" \ + "--line-number.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--line-number.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--line-number.height=[Text height]:text height:" \ + "--line-number.width=[Text width]:text width:" \ + "--line-number.margin=[Text margin]:text margin:" \ + "--line-number.padding=[Text padding]:text padding:" \ + "--line-number.bold[Bold text]" \ + "--line-number.faint[Faint text]" \ + "--line-number.italic[Italicize text]" \ + "--line-number.strikethrough[Strikethrough text]" \ + "--line-number.underline[Underline text]" +} + +_gum_spin() { + _arguments -C \ + "--show-output[Show output of command]" \ + '(-s --spinner=)'{-s,--spinner=}"[Spinner type]:spinner type:(line dot minidot jump pulse points globe moon monkey meter hamburger)" \ + "--spinner.background=[Background Color]:background color:" \ + "--spinner.foreground=[Foreground Color]:foreground color:" \ + "--spinner.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--spinner.border-background=[Border Background Color]:border background color:" \ + "--spinner.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--spinner.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--spinner.height=[Text height]:text height:" \ + "--spinner.width=[Text width]:text width:" \ + "--spinner.margin=[Text margin]:text margin:" \ + "--spinner.padding=[Text padding]:text padding:" \ + "--spinner.bold[Bold text]" \ + "--spinner.faint[Faint text]" \ + "--spinner.italic[Italicize text]" \ + "--spinner.strikethrough[Strikethrough text]" \ + "--spinner.underline[Underline text]" \ + "--title=[Text to display to user while spinning]:text to display to user while spinning:" \ + "--title.background=[Background Color]:background color:" \ + "--title.foreground=[Foreground Color]:foreground color:" \ + "--title.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--title.border-background=[Border Background Color]:border background color:" \ + "--title.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--title.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--title.height=[Text height]:text height:" \ + "--title.width=[Text width]:text width:" \ + "--title.margin=[Text margin]:text margin:" \ + "--title.padding=[Text padding]:text padding:" \ + "--title.bold[Bold text]" \ + "--title.faint[Faint text]" \ + "--title.italic[Italicize text]" \ + "--title.strikethrough[Strikethrough text]" \ + "--title.underline[Underline text]" \ + '(-a --align=)'{-a,--align=}"[Alignment of spinner with regard to the title]:alignment of spinner with regard to the title:(left right)" +} + +_gum_style() { + _arguments -C \ + "--background=[Background Color]:background color:" \ + "--foreground=[Foreground Color]:foreground color:" \ + "--border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--border-background=[Border Background Color]:border background color:" \ + "--border-foreground=[Border Foreground Color]:border foreground color:" \ + "--align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--height=[Text height]:text height:" \ + "--width=[Text width]:text width:" \ + "--margin=[Text margin]:text margin:" \ + "--padding=[Text padding]:text padding:" \ + "--bold[Bold text]" \ + "--faint[Faint text]" \ + "--italic[Italicize text]" \ + "--strikethrough[Strikethrough text]" \ + "--underline[Underline text]" +} + +_gum_table() { + _arguments -C \ + '(-s --separator=)'{-s,--separator=}"[Row separator]:row separator:" \ + '(-c --columns=)'{-c,--columns=}"[Column names]:column names:" \ + '(-w --widths=)'{-w,--widths=}"[Column widths]:column widths:" \ + "--height=[Table height]:table height:" \ + "--cell.background=[Background Color]:background color:" \ + "--cell.foreground=[Foreground Color]:foreground color:" \ + "--cell.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--cell.border-background=[Border Background Color]:border background color:" \ + "--cell.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--cell.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--cell.height=[Text height]:text height:" \ + "--cell.width=[Text width]:text width:" \ + "--cell.margin=[Text margin]:text margin:" \ + "--cell.padding=[Text padding]:text padding:" \ + "--cell.bold[Bold text]" \ + "--cell.faint[Faint text]" \ + "--cell.italic[Italicize text]" \ + "--cell.strikethrough[Strikethrough text]" \ + "--cell.underline[Underline text]" \ + "--header.background=[Background Color]:background color:" \ + "--header.foreground=[Foreground Color]:foreground color:" \ + "--header.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--header.border-background=[Border Background Color]:border background color:" \ + "--header.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--header.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--header.height=[Text height]:text height:" \ + "--header.width=[Text width]:text width:" \ + "--header.margin=[Text margin]:text margin:" \ + "--header.padding=[Text padding]:text padding:" \ + "--header.bold[Bold text]" \ + "--header.faint[Faint text]" \ + "--header.italic[Italicize text]" \ + "--header.strikethrough[Strikethrough text]" \ + "--header.underline[Underline text]" \ + "--selected.background=[Background Color]:background color:" \ + "--selected.foreground=[Foreground Color]:foreground color:" \ + "--selected.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--selected.border-background=[Border Background Color]:border background color:" \ + "--selected.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--selected.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--selected.height=[Text height]:text height:" \ + "--selected.width=[Text width]:text width:" \ + "--selected.margin=[Text margin]:text margin:" \ + "--selected.padding=[Text padding]:text padding:" \ + "--selected.bold[Bold text]" \ + "--selected.faint[Faint text]" \ + "--selected.italic[Italicize text]" \ + "--selected.strikethrough[Strikethrough text]" \ + "--selected.underline[Underline text]" \ + '(-f --file=)'{-f,--file=}"[file path]:file path:" +} + +_gum_write() { + _arguments -C \ + "--width=[Text area width]:text area width:" \ + "--height=[Text area height]:text area height:" \ + "--header=[Header value]:header value:" \ + "--placeholder=[Placeholder value]:placeholder value:" \ + "--prompt=[Prompt to display]:prompt to display:" \ + "--show-cursor-line[Show cursor line]" \ + "--show-line-numbers[Show line numbers]" \ + "--value=[Initial value (can be passed via stdin)]:initial value (can be passed via stdin):" \ + "--char-limit=[Maximum value length (0 for no limit)]:maximum value length (0 for no limit):" \ + "--base.background=[Background Color]:background color:" \ + "--base.foreground=[Foreground Color]:foreground color:" \ + "--base.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--base.border-background=[Border Background Color]:border background color:" \ + "--base.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--base.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--base.height=[Text height]:text height:" \ + "--base.width=[Text width]:text width:" \ + "--base.margin=[Text margin]:text margin:" \ + "--base.padding=[Text padding]:text padding:" \ + "--base.bold[Bold text]" \ + "--base.faint[Faint text]" \ + "--base.italic[Italicize text]" \ + "--base.strikethrough[Strikethrough text]" \ + "--base.underline[Underline text]" \ + "--cursor-line-number.background=[Background Color]:background color:" \ + "--cursor-line-number.foreground=[Foreground Color]:foreground color:" \ + "--cursor-line-number.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--cursor-line-number.border-background=[Border Background Color]:border background color:" \ + "--cursor-line-number.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--cursor-line-number.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--cursor-line-number.height=[Text height]:text height:" \ + "--cursor-line-number.width=[Text width]:text width:" \ + "--cursor-line-number.margin=[Text margin]:text margin:" \ + "--cursor-line-number.padding=[Text padding]:text padding:" \ + "--cursor-line-number.bold[Bold text]" \ + "--cursor-line-number.faint[Faint text]" \ + "--cursor-line-number.italic[Italicize text]" \ + "--cursor-line-number.strikethrough[Strikethrough text]" \ + "--cursor-line-number.underline[Underline text]" \ + "--cursor-line.background=[Background Color]:background color:" \ + "--cursor-line.foreground=[Foreground Color]:foreground color:" \ + "--cursor-line.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--cursor-line.border-background=[Border Background Color]:border background color:" \ + "--cursor-line.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--cursor-line.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--cursor-line.height=[Text height]:text height:" \ + "--cursor-line.width=[Text width]:text width:" \ + "--cursor-line.margin=[Text margin]:text margin:" \ + "--cursor-line.padding=[Text padding]:text padding:" \ + "--cursor-line.bold[Bold text]" \ + "--cursor-line.faint[Faint text]" \ + "--cursor-line.italic[Italicize text]" \ + "--cursor-line.strikethrough[Strikethrough text]" \ + "--cursor-line.underline[Underline text]" \ + "--cursor.background=[Background Color]:background color:" \ + "--cursor.foreground=[Foreground Color]:foreground color:" \ + "--cursor.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--cursor.border-background=[Border Background Color]:border background color:" \ + "--cursor.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--cursor.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--cursor.height=[Text height]:text height:" \ + "--cursor.width=[Text width]:text width:" \ + "--cursor.margin=[Text margin]:text margin:" \ + "--cursor.padding=[Text padding]:text padding:" \ + "--cursor.bold[Bold text]" \ + "--cursor.faint[Faint text]" \ + "--cursor.italic[Italicize text]" \ + "--cursor.strikethrough[Strikethrough text]" \ + "--cursor.underline[Underline text]" \ + "--end-of-buffer.background=[Background Color]:background color:" \ + "--end-of-buffer.foreground=[Foreground Color]:foreground color:" \ + "--end-of-buffer.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--end-of-buffer.border-background=[Border Background Color]:border background color:" \ + "--end-of-buffer.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--end-of-buffer.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--end-of-buffer.height=[Text height]:text height:" \ + "--end-of-buffer.width=[Text width]:text width:" \ + "--end-of-buffer.margin=[Text margin]:text margin:" \ + "--end-of-buffer.padding=[Text padding]:text padding:" \ + "--end-of-buffer.bold[Bold text]" \ + "--end-of-buffer.faint[Faint text]" \ + "--end-of-buffer.italic[Italicize text]" \ + "--end-of-buffer.strikethrough[Strikethrough text]" \ + "--end-of-buffer.underline[Underline text]" \ + "--line-number.background=[Background Color]:background color:" \ + "--line-number.foreground=[Foreground Color]:foreground color:" \ + "--line-number.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--line-number.border-background=[Border Background Color]:border background color:" \ + "--line-number.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--line-number.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--line-number.height=[Text height]:text height:" \ + "--line-number.width=[Text width]:text width:" \ + "--line-number.margin=[Text margin]:text margin:" \ + "--line-number.padding=[Text padding]:text padding:" \ + "--line-number.bold[Bold text]" \ + "--line-number.faint[Faint text]" \ + "--line-number.italic[Italicize text]" \ + "--line-number.strikethrough[Strikethrough text]" \ + "--line-number.underline[Underline text]" \ + "--header.background=[Background Color]:background color:" \ + "--header.foreground=[Foreground Color]:foreground color:" \ + "--header.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--header.border-background=[Border Background Color]:border background color:" \ + "--header.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--header.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--header.height=[Text height]:text height:" \ + "--header.width=[Text width]:text width:" \ + "--header.margin=[Text margin]:text margin:" \ + "--header.padding=[Text padding]:text padding:" \ + "--header.bold[Bold text]" \ + "--header.faint[Faint text]" \ + "--header.italic[Italicize text]" \ + "--header.strikethrough[Strikethrough text]" \ + "--header.underline[Underline text]" \ + "--placeholder.background=[Background Color]:background color:" \ + "--placeholder.foreground=[Foreground Color]:foreground color:" \ + "--placeholder.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--placeholder.border-background=[Border Background Color]:border background color:" \ + "--placeholder.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--placeholder.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--placeholder.height=[Text height]:text height:" \ + "--placeholder.width=[Text width]:text width:" \ + "--placeholder.margin=[Text margin]:text margin:" \ + "--placeholder.padding=[Text padding]:text padding:" \ + "--placeholder.bold[Bold text]" \ + "--placeholder.faint[Faint text]" \ + "--placeholder.italic[Italicize text]" \ + "--placeholder.strikethrough[Strikethrough text]" \ + "--placeholder.underline[Underline text]" \ + "--prompt.background=[Background Color]:background color:" \ + "--prompt.foreground=[Foreground Color]:foreground color:" \ + "--prompt.border=[Border Style]:border style:(none hidden normal rounded thick double)" \ + "--prompt.border-background=[Border Background Color]:border background color:" \ + "--prompt.border-foreground=[Border Foreground Color]:border foreground color:" \ + "--prompt.align=[Text Alignment]:text alignment:(left center right bottom middle top)" \ + "--prompt.height=[Text height]:text height:" \ + "--prompt.width=[Text width]:text width:" \ + "--prompt.margin=[Text margin]:text margin:" \ + "--prompt.padding=[Text padding]:text padding:" \ + "--prompt.bold[Bold text]" \ + "--prompt.faint[Faint text]" \ + "--prompt.italic[Italicize text]" \ + "--prompt.strikethrough[Strikethrough text]" \ + "--prompt.underline[Underline text]" +} + +_gum() { + local line state + _arguments -C \ + '(-h --help)'{-h,--help}"[Show context-sensitive help.]" \ + '(-v --version)'{-v,--version}"[Print the version number]" \ + "1: :->cmds" \ + "*::arg:->args" + case "$state" in + cmds) + _values "gum command" \ + "choose[Choose an option from a list of choices]" \ + "confirm[Ask a user to confirm an action]" \ + "file[Pick a file from a folder]" \ + "filter[Filter items from a list]" \ + "format[Format a string using a template]" \ + "input[Prompt for some input]" \ + "join[Join text vertically or horizontally]" \ + "pager[Scroll through a file]" \ + "spin[Display spinner while running a command]" \ + "style[Apply coloring, borders, spacing to text]" \ + "table[Render a table of data]" \ + "write[Prompt for long-form text]" + ;; + args) + case "$line[1]" in + choose) + _gum_choose + ;; + confirm) + _gum_confirm + ;; + file) + _gum_file + ;; + filter) + _gum_filter + ;; + format) + _gum_format + ;; + input) + _gum_input + ;; + join) + _gum_join + ;; + pager) + _gum_pager + ;; + spin) + _gum_spin + ;; + style) + _gum_style + ;; + table) + _gum_table + ;; + write) + _gum_write + ;; + esac + ;; + esac + +} + diff --git a/gum_0.8.0_Windows_x86_64/gum.exe b/gum_0.8.0_Windows_x86_64/gum.exe new file mode 100644 index 0000000..c49a058 Binary files /dev/null and b/gum_0.8.0_Windows_x86_64/gum.exe differ diff --git a/gum_0.8.0_Windows_x86_64/manpages/gum.1.gz b/gum_0.8.0_Windows_x86_64/manpages/gum.1.gz new file mode 100644 index 0000000..2f212b6 Binary files /dev/null and b/gum_0.8.0_Windows_x86_64/manpages/gum.1.gz differ -- cgit v1.2.3