Files
iris-context/commands/sys/gum.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

74 lines
3.9 KiB
Go

package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "gum",
Description: "Background Color",
Subcommands: []core.Subcommand{
{Name: "choose", Description: "Choose an option from a list of choices"},
{Name: "confirm", Description: "Ask a user to confirm an action"},
{Name: "prompt", Description: "Prompt to display"},
{Name: "filter", Description: "Filter items from a list"},
{Name: "format", Description: "Format a string using a template"},
{Name: "template", Description: "Template string to format"},
{Name: "input", Description: "Prompt for some input"},
{Name: "join", Description: "Join text vertically or horizontally"},
{Name: "text", Description: "Text to join"},
{Name: "spin", Description: "Display spinner while running a command"},
{Name: "style", Description: "Apply coloring, borders, spacing to text"},
{Name: "write", Description: "Prompt for long-form text"},
{Name: "file", Description: "Pick a file from a folder"},
{Name: "path", Description: "The path to the folder to begin traversing"},
{Name: "table", Description: "Render a table of data"},
{Name: "pager", Description: "Scroll through a file"},
{Name: "content", Description: "Display content to scroll"},
},
Options: []core.Option{
{Name: "--background", Description: "Background Color"},
{Name: "--foreground", Description: "Foreground Color"},
{Name: "--border", Description: "Border Style"},
{Name: "--border-background", Description: "Border Background Color"},
{Name: "--border-foreground", Description: "Border Foreground Color"},
{Name: "--align", Description: "Text Alignment"},
{Name: "--height", Description: "Text height"},
{Name: "--width", Description: "Text width"},
{Name: "--margin", Description: "Text margin"},
{Name: "--padding", Description: "Text padding"},
{Name: "--bold", Description: "Bold text"},
{Name: "--faint", Description: "Faint text"},
{Name: "--italic", Description: "Italicize text"},
{Name: "--strikethrough", Description: "Strikethrough text"},
{Name: "--underline", Description: "Underline text"},
{Name: "--cursor", Description: "Prefix to show on item that corresponds to the cursor position"},
{Name: "--cursor-prefix", Description: "Prefix to show on the cursor item"},
{Name: "--selected-prefix", Description: "Prefix to show on selected items"},
{Name: "--unselected-prefix", Description: "Prefix to show on unselected items"},
{Name: "--selected", Description: "Options that should start as selected"},
{Name: "--limit", Description: "Maximum number of options to pick"},
{Name: "--no-limit", Description: "Pick unlimited number of options (ignores limit)"},
{Name: "--affirmative", Description: "The title of the affirmative action"},
{Name: "--negative", Description: "The title of the negative action"},
{Name: "--default", Description: "Default confirmation action"},
{Name: "--timeout", Description: "Timeout for confirmation"},
{Name: "--indicator", Description: "Character for selection"},
{Name: "--placeholder", Description: "Placeholder value"},
{Name: "--prompt", Description: "Prompt to display"},
{Name: "--value", Description: "Initial filter"},
{Name: "--reverse", Description: "Display from the bottom of the screen"},
{Name: "--type", Description: "Format to use"},
{Name: "--char-limit", Description: "Maximum value length"},
{Name: "--password", Description: "Mask input characters"},
{Name: "--horizontal", Description: "Join (potentially multi-line) strings horizontally"},
{Name: "--vertical", Description: "Join (potentially multi-line) strings vertically"},
{Name: "--show-output", Description: "Show output of command"},
{Name: "--spinner", Description: "Spinner type"},
{Name: "--title", Description: "Text to display to user while spinning"},
{Name: "--show-cursor-line", Description: "Show cursor line"},
},
})
}