internal/

directory
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT

Directories

Path Synopsis
Package app puts gist together: the commands and their flags, the log, and what each command is given to run with.
Package app puts gist together: the commands and their flags, the log, and what each command is given to run with.
Package cache keeps what was read from GitHub, so the next launch shows it at once and asks only for what changed.
Package cache keeps what was read from GitHub, so the next launch shows it at once and asks only for what changed.
Package cli holds what the subcommands do, once internal/app has parsed their arguments.
Package cli holds what the subcommands do, once internal/app has parsed their arguments.
Package config reads the config file: what the user can set, each with a default, so a file that sets nothing is a file that works.
Package config reads the config file: what the user can set, each with a default, so a file that sets nothing is a file that works.
Package diff says what changed between two versions of a file, with three lines of context around each change.
Package diff says what changed between two versions of a file, with three lines of context around each change.
Package edit is how a gist is changed, shared by the CLI and the TUI: it holds the gist's lock, knows the revision a change was based on, keeps an edit as a draft until it is sent, and checks the gist did not move underneath it.
Package edit is how a gist is changed, shared by the CLI and the TUI: it holds the gist's lock, knows the revision a change was based on, keeps an edit as a draft until it is sent, and checks the gist did not move underneath it.
Package fakegist is a made-up GitHub Gist API for tests: an httptest server a client reaches through Transport, whatever host it asks for.
Package fakegist is a made-up GitHub Gist API for tests: an httptest server a client reaches through Transport, whatever host it asks for.
Package filter narrows the list of gists: words found in order in a gist's description or file names, and key:value terms that look in one thing only: file:, desc:, vis:, lang:, owner:, size:, updated: and comments:.
Package filter narrows the list of gists: words found in order in a gist's description or file names, and key:value terms that look in one thing only: file:, desc:, vis:, lang:, owner:, size:, updated: and comments:.
Package github is gist's only way to GitHub: it reads and writes gists through the REST API, with the token go-gh finds.
Package github is gist's only way to GitHub: it reads and writes gists through the REST API, with the token go-gh finds.
Package highlight splits a file into lines of tokens, with what each token is rather than its color, which is for the theme to say.
Package highlight splits a file into lines of tokens, with what each token is rather than its color, which is for the theme to say.
Package logging makes the logger gist writes its log file with: JSON lines through log/slog, to a file under the state directory, never to the terminal the TUI draws on.
Package logging makes the logger gist writes its log file with: JSON lines through log/slog, to a file under the state directory, never to the terminal the TUI draws on.
Package markdown draws Markdown in lines of a given width, with what each piece of text is rather than its color, which is for the theme to say.
Package markdown draws Markdown in lines of a given width, with what each piece of text is rather than its color, which is for the theme to say.
Package model holds the types the other packages share: gists, their files and comments, as gist uses them rather than as GitHub sends them.
Package model holds the types the other packages share: gists, their files and comments, as gist uses them rather than as GitHub sends them.
Package near finds, among a few names, the one closest to a name that was mistyped, so a message can ask "did you mean ...?".
Package near finds, among a few names, the one closest to a name that was mistyped, so a message can ask "did you mean ...?".
Package release tells whether a newer release of gist is out and how the running install is updated.
Package release tells whether a newer release of gist is out and how the running install is updated.
Package resolve turns what the user calls a gist into its ID.
Package resolve turns what the user calls a gist into its ID.
Package state keeps what would be missed if lost: the drafts of edits not yet sent, and the locks that keep two gist from one gist's drafts.
Package state keeps what would be missed if lost: the drafts of edits not yet sent, and the locks that keep two gist from one gist's drafts.
Package text makes text from GitHub fit to draw.
Package text makes text from GitHub fit to draw.
tui
Package tui is gist's terminal UI.
Package tui is gist's terminal UI.
keymap
Package keymap binds keys to actions by name.
Package keymap binds keys to actions by name.
statusline
Package statusline holds what the status line shows: what just happened, for a moment, and what is going on.
Package statusline holds what the status line shows: what just happened, for a moment, and what is going on.
Package version holds the release version.
Package version holds the release version.
Package xdg says where gist keeps its files, following the XDG base directory specification.
Package xdg says where gist keeps its files, following the XDG base directory specification.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL