id = "gum" name = "Gum" description = "A tool for glamorous shell scripts." homepage = "https://github.com/charmbracelet/gum" executables = ["gum"] [commands] format = 1 label = "Gum" description = "Interactive prompts for shell scripts. Styling options are left out." quality = "ai-draft" base = "fig:gum" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/gum.ts" license = "MIT" [[commands.subcommand]] path = ["choose"] label = "Choose from a list" description = "Choose an option from a list of choices." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/gum.ts" license = "MIT" [[commands.subcommand.field]] id = "options" label = "Options" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "limit" label = "Maximum picks" type = "integer" option = ["--limit"] sources = ["fig"] [[commands.subcommand.field]] id = "no_limit" label = "Unlimited picks" type = "boolean" option = ["--no-limit"] sources = ["fig"] [[commands.subcommand.field]] id = "height" label = "List height" type = "integer" option = ["--height"] sources = ["fig"] [[commands.subcommand.field]] id = "cursor" label = "Cursor symbol" type = "string" option = ["--cursor"] sources = ["fig"] [[commands.subcommand.field]] id = "selected" label = "Preselected options" type = "string" option = ["--selected"] multiple = true sources = ["fig"] [[commands.subcommand.task]] id = "choose" label = "Choose" fields = ["options", "limit"] required = ["options"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["options", "limit", "no_limit"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["height", "cursor", "selected"] [[commands.subcommand]] path = ["confirm"] label = "Ask to confirm" description = "Ask a user to confirm an action." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/gum.ts" license = "MIT" [[commands.subcommand.field]] id = "prompt" label = "Prompt" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "affirmative" label = "Yes label" type = "string" option = ["--affirmative"] sources = ["fig"] [[commands.subcommand.field]] id = "negative" label = "No label" type = "string" option = ["--negative"] sources = ["fig"] [[commands.subcommand.field]] id = "default" label = "Default to yes" type = "boolean" option = ["--default"] sources = ["fig"] [[commands.subcommand.field]] id = "timeout" label = "Timeout" description = "e.g. 10s." type = "string" option = ["--timeout"] sources = ["fig"] [[commands.subcommand.task]] id = "confirm" label = "Confirm" fields = ["prompt", "affirmative", "negative"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["prompt", "affirmative", "negative"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["default", "timeout"] [[commands.subcommand]] path = ["input"] label = "Prompt for input" description = "Prompt for a single line of input." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/gum.ts" license = "MIT" [[commands.subcommand.field]] id = "placeholder" label = "Placeholder" type = "string" option = ["--placeholder"] sources = ["fig"] [[commands.subcommand.field]] id = "prompt" label = "Prompt" type = "string" option = ["--prompt"] sources = ["fig"] [[commands.subcommand.field]] id = "value" label = "Initial value" type = "string" option = ["--value"] sources = ["fig"] [[commands.subcommand.field]] id = "password" label = "Mask input" type = "boolean" option = ["--password"] sources = ["fig"] [[commands.subcommand.field]] id = "char_limit" label = "Max length" type = "integer" option = ["--char-limit"] sources = ["fig"] [[commands.subcommand.field]] id = "width" label = "Width" type = "integer" option = ["--width"] sources = ["fig"] [[commands.subcommand.task]] id = "input" label = "Input" fields = ["placeholder", "prompt", "value"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["placeholder", "prompt", "value", "password"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["char_limit", "width"]