gum

gum

A command-line tool for adding attractive interactivity to shell scripts.

Selects one or more values from a given list of options. Unlike filter, choose does not allow the user to search through the list.

Prompts for confirmation, returning 0 on an affirmative answer and 1 on a negative one. This leads to the general form gum confirm && YES_CMD || NO_CMD.

gum confirm && ls || echo "never mind"

Navigates through a given path to select and output a filename.

Chooses one or more values from a newline-separated list.

Renders the input as a Go template.

Requests a single line of input, printing the output.

Joins text horizontally or vertically.

Pages through data passed to stdin.

Displays a spinner for the duration of a command. Available spinners include:

  • line
  • dot (default)
  • minidot
  • jump
  • pulse
  • points
  • globe
  • moon
  • monkey
  • meter
  • hamburger

Applies text styling to its input.

Renders a table of data. By default, it expects the data to be in CSV format.

Multi-line text input with complete cursor-based editing.

  • gum.txt
  • Last modified: 2023-06-25 01:29
  • by asdf