Directories
¶
| Path | Synopsis |
|---|---|
|
Package browser opens a web page in the user's browser, such as the sign-in page of an OAuth flow.
|
Package browser opens a web page in the user's browser, such as the sign-in page of an OAuth flow. |
|
Package buildinfo reports which build of a command is running.
|
Package buildinfo reports which build of a command is running. |
|
Package clipboard copies text to the system clipboard.
|
Package clipboard copies text to the system clipboard. |
|
Package cobrax collects the cobra and pflag wiring command-line tools keep rewriting: a --color[=WHEN] flag and other flags that take auto, always or never (AddModeFlag), enumerated flags that complete their values, older spellings of flags kept as hidden switches (AddFlagAlias), file completion switched off where no file is expected, a hardened completion command that can install its scripts for the current user or write them to a path of the tool's choice, completion candidates cached on disk, filtered by prefix (CompletePrefix) and kept free of control characters (SafeCompletions), the "--flag false" spelling of boolean flags, and version output.
|
Package cobrax collects the cobra and pflag wiring command-line tools keep rewriting: a --color[=WHEN] flag and other flags that take auto, always or never (AddModeFlag), enumerated flags that complete their values, older spellings of flags kept as hidden switches (AddFlagAlias), file completion switched off where no file is expected, a hardened completion command that can install its scripts for the current user or write them to a path of the tool's choice, completion candidates cached on disk, filtered by prefix (CompletePrefix) and kept free of control characters (SafeCompletions), the "--flag false" spelling of boolean flags, and version output. |
|
examples
|
|
|
demo
command
Command demo shows the visual packages of cli-kit at work.
|
Command demo shows the visual packages of cli-kit at work. |
|
Package format names the output formats a command-line tool offers through an --output flag and writes the structured ones.
|
Package format names the output formats a command-line tool offers through an --output flag and writes the structured ones. |
|
Package fsx holds file system helpers the standard library leaves out.
|
Package fsx holds file system helpers the standard library leaves out. |
|
Package ics writes iCalendar (RFC 5545) files: a VCALENDAR holding VEVENT components, as calendar clients import or subscribe to them.
|
Package ics writes iCalendar (RFC 5545) files: a VCALENDAR holding VEVENT components, as calendar clients import or subscribe to them. |
|
internal
|
|
|
atomicfile
Package atomicfile replaces a file atomically.
|
Package atomicfile replaces a file atomically. |
|
Package live draws terminal output that changes in place, and keeps the terminal usable when the program drawing it stops unexpectedly.
|
Package live draws terminal output that changes in place, and keeps the terminal usable when the program drawing it stops unexpectedly. |
|
Package logx holds log/slog handlers for command-line tools.
|
Package logx holds log/slog handlers for command-line tools. |
|
Package pick draws keyboard-driven prompts on a terminal: the interactive counterpart of a flag the user did not pass.
|
Package pick draws keyboard-driven prompts on a terminal: the interactive counterpart of a flag the user did not pass. |
|
Package progress draws a single-line progress bar on a terminal.
|
Package progress draws a single-line progress bar on a terminal. |
|
Package redact removes credentials from text before it is logged, stored or shown.
|
Package redact removes credentials from text before it is logged, stored or shown. |
|
Package secret finds the passwords and tokens a command-line tool needs, and keeps them between runs without writing them anywhere in plain sight.
|
Package secret finds the passwords and tokens a command-line tool needs, and keeps them between runs without writing them anywhere in plain sight. |
|
Package selfupdate replaces a running command-line tool with its latest release.
|
Package selfupdate replaces a running command-line tool with its latest release. |
|
Package table renders rows of cells as an aligned text table, a framed table, a markdown pipe table, or CSV/TSV records.
|
Package table renders rows of cells as an aligned text table, a framed table, a markdown pipe table, or CSV/TSV records. |
|
Package term answers the questions every command-line tool asks about its terminal: whether a stream is a terminal at all, how large it is, whether it may be painted in color, and how wide a piece of text is once it is drawn there.
|
Package term answers the questions every command-line tool asks about its terminal: whether a stream is a terminal at all, how large it is, whether it may be painted in color, and how wide a piece of text is once it is drawn there. |
|
Package theme holds the colors the packages of this module paint with.
|
Package theme holds the colors the packages of this module paint with. |
Click to show internal directories.
Click to hide internal directories.