Directories
¶
| Path | Synopsis |
|---|---|
|
demo
|
|
|
internal/recording
Package recording runs the TUI against a made-up GitHub, for the recording in the README.
|
Package recording runs the TUI against a made-up GitHub, for the recording in the README. |
|
recording
command
recording runs gist against a made-up GitHub, for the recording in the README: mise run demo records it.
|
recording runs gist against a made-up GitHub, for the recording in the README: mise run demo records it. |
|
internal
|
|
|
app
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. |
|
cache
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. |
|
cli
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. |
|
config
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. |
|
diff
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. |
|
edit
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. |
|
fakegist
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. |
|
filter
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: and lang:.
|
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: and lang:. |
|
github
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. |
|
highlight
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. |
|
logging
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. |
|
markdown
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. |
|
model
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. |
|
near
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 ...?". |
|
release
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. |
|
resolve
Package resolve turns what the user calls a gist into its ID.
|
Package resolve turns what the user calls a gist into its ID. |
|
state
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. |
|
text
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. |
|
tui/keymap
Package keymap binds keys to actions by name.
|
Package keymap binds keys to actions by name. |
|
tui/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. |
|
version
Package version holds the release version.
|
Package version holds the release version. |
|
xdg
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. |
Click to show internal directories.
Click to hide internal directories.
