docs(functions): split RETURNS into EXIT STATUS and stdout RETURNS

RETURNS previously conflated fish's $status exit code with genuine
stdout/printed output, e.g. rm listing "0/1" as if they were print
values rather than exit codes. Rename RETURNS to EXIT STATUS across
all 83 documented functions, and reintroduce RETURNS as a distinct
label reserved for the 15 functions that actually print to stdout.

Update build-manual.py's ENTRY_HEADS to render Exit Status before
Returns, manualtools.py's SECTIONS constant, and AGENTS.md's label
order and label-usage guidance to match. Add two verify-manual.py
regression tests: EXIT STATUS bodies must never contain stray
stdout/printed language, and Returns: must always render after
Exit Status: when both are present. Regenerate docs/fish-config.md.
This commit is contained in:
2026-07-26 16:41:57 -04:00
parent cd08403416
commit e651566e14
87 changed files with 263 additions and 153 deletions
+6 -1
View File
@@ -416,7 +416,12 @@ def prettify(body: str, entry_name: str | None = None) -> str:
return "\n".join(out) return "\n".join(out)
ENTRY_HEADS = {"ARGUMENTS": "Arguments:", "RETURNS": "Returns:", "NOTES": "Notes:"} ENTRY_HEADS = {
"ARGUMENTS": "Arguments:",
"EXIT STATUS": "Exit Status:",
"RETURNS": "Returns:",
"NOTES": "Notes:",
}
def render_entry(fn: dict[str, list[str]], used_by: list[str], link=None) -> str: def render_entry(fn: dict[str, list[str]], used_by: list[str], link=None) -> str:
+75 -55
View File
@@ -708,7 +708,7 @@ Add -i (interactive confirmation) to destructive commands:
-s, --silent Suppress directory creation output -s, --silent Suppress directory creation output
<dir> Directory to create and enter <dir> Directory to create and enter
Returns: Exit Status:
0 Directory created (or already existed) and entered successfully 0 Directory created (or already existed) and entered successfully
1 Directory creation or cd failed 1 Directory creation or cd failed
@@ -741,7 +741,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
file One or more file paths to create file One or more file paths to create
Returns: Exit Status:
0 Files created 0 Files created
1 No file argument provided 1 No file argument provided
@@ -785,7 +785,7 @@ Add -i (interactive confirmation) to destructive commands:
-r, -R, --recursive Forwarded to trash put alongside path arguments -r, -R, --recursive Forwarded to trash put alongside path arguments
args... Files or paths to trash or remove args... Files or paths to trash or remove
Returns: Exit Status:
0 Operation succeeded 0 Operation succeeded
1 trash put failed or file not found 1 trash put failed or file not found
@@ -812,7 +812,7 @@ Add -i (interactive confirmation) to destructive commands:
-d, --dry-run Show targets without deleting -d, --dry-run Show targets without deleting
-h, --help Show usage help -h, --help Show usage help
Returns: Exit Status:
0 Sweep completed (or dry run shown) 0 Sweep completed (or dry run shown)
1 fd not found, or unknown argument provided 1 fd not found, or unknown argument provided
@@ -846,7 +846,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Arguments forwarded to clone-in-kitty (typically a repo URL) args... Arguments forwarded to clone-in-kitty (typically a repo URL)
Returns: Exit Status:
0 Repository cloned 0 Repository cloned
1 Not running inside Kitty terminal 1 Not running inside Kitty terminal
@@ -863,7 +863,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Arguments forwarded to clone-in-kitty (typically a repo URL) args... Arguments forwarded to clone-in-kitty (typically a repo URL)
Returns: Exit Status:
0 Repository cloned 0 Repository cloned
1 Not running inside Kitty terminal 1 Not running inside Kitty terminal
@@ -899,7 +899,7 @@ Add -i (interactive confirmation) to destructive commands:
-s, --silent Suppress all output, including the editor's -s, --silent Suppress all output, including the editor's
-h, --help Show this help message -h, --help Show this help message
Returns: Exit Status:
0 Editor launched successfully 0 Editor launched successfully
1 Conflicting flags, no editor found, or clipboard read failed 1 Conflicting flags, no editor found, or clipboard read failed
@@ -922,7 +922,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
command_prefix Search history for the newest command matching this command_prefix Search history for the newest command matching this
Returns: Exit Status:
The edited command's exit status, or a message when history lookup The edited command's exit status, or a message when history lookup
found nothing. found nothing.
@@ -996,7 +996,7 @@ Add -i (interactive confirmation) to destructive commands:
status Show enabled/disabled state, repo count, and registry path status Show enabled/disabled state, repo count, and registry path
-h, --help Show this help message -h, --help Show this help message
Returns: Exit Status:
0 Subcommand succeeded 0 Subcommand succeeded
1 Bad usage, target is not a git repo, or target not registered 1 Bad usage, target is not a git repo, or target not registered
@@ -1016,7 +1016,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
branch_name Branch to switch to or create branch_name Branch to switch to or create
Returns: Exit Status:
0 Branch checked out or created 0 Branch checked out or created
1 Not inside a git work tree 1 Not inside a git work tree
@@ -1041,10 +1041,14 @@ Add -i (interactive confirmation) to destructive commands:
-s, --stdout Print API output to stdout instead of .gitignore -s, --stdout Print API output to stdout instead of .gitignore
targets Comma- or space-separated list of language/tool names targets Comma- or space-separated list of language/tool names
Returns: Exit Status:
0 Patterns appended or printed 0 Patterns appended, or resolved with -s/--stdout or -l/--list
1 Not in a git repository or API fetch failed 1 Not in a git repository or API fetch failed
Returns:
With -s/--stdout, the fetched .gitignore pattern text, printed to stdout.
With -l/--list, the supported target list, printed to stdout.
Example: Example:
gi python,venv gi python,venv
gi -b -p gi -b -p
@@ -1062,7 +1066,7 @@ Add -i (interactive confirmation) to destructive commands:
-h, --help Show help message -h, --help Show help message
-f, --force Force-delete unmerged orphaned branches (git branch -D) -f, --force Force-delete unmerged orphaned branches (git branch -D)
Returns: Exit Status:
0 Cleanup complete 0 Cleanup complete
1 Argument parsing failed 1 Argument parsing failed
@@ -1093,7 +1097,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Forwarded verbatim to git fetch args... Forwarded verbatim to git fetch
Returns: Exit Status:
0 Fetch and status succeeded 0 Fetch and status succeeded
1 Not inside a git work tree 1 Not inside a git work tree
@@ -1131,7 +1135,7 @@ Add -i (interactive confirmation) to destructive commands:
pacman -Qi previews, then removes the selected packages using paru or yay. pacman -Qi previews, then removes the selected packages using paru or yay.
Arch Linux only. Arch Linux only.
Returns: Exit Status:
0 Packages removed or none selected 0 Packages removed or none selected
1 No AUR helper (paru or yay) found 1 No AUR helper (paru or yay) found
@@ -1161,7 +1165,7 @@ Add -i (interactive confirmation) to destructive commands:
-u, --uninstall Force uninstall mode -u, --uninstall Force uninstall mode
package One or more package names to install or remove package One or more package names to install or remove
Returns: Exit Status:
0 Operation completed 0 Operation completed
1 No supported package manager found, unknown flag, or package operation failed 1 No supported package manager found, unknown flag, or package operation failed
@@ -1180,7 +1184,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Arguments forwarded to paru or yay args... Arguments forwarded to paru or yay
Returns: Exit Status:
0 AUR helper ran successfully 0 AUR helper ran successfully
1 No AUR helper (paru or yay) found 1 No AUR helper (paru or yay) found
@@ -1194,7 +1198,7 @@ Add -i (interactive confirmation) to destructive commands:
Runs a full system upgrade via paru or yay with --noconfirm. Falls Runs a full system upgrade via paru or yay with --noconfirm. Falls
back to yay if paru is not installed. Arch Linux only. back to yay if paru is not installed. Arch Linux only.
Returns: Exit Status:
0 Upgrade completed successfully 0 Upgrade completed successfully
1 No AUR helper (paru or yay) found 1 No AUR helper (paru or yay) found
@@ -1244,7 +1248,7 @@ Add -i (interactive confirmation) to destructive commands:
update Update all installed deps update Update all installed deps
sync Install missing deps, then update all sync Install missing deps, then update all
Returns: Exit Status:
0 Subcommand completed 0 Subcommand completed
1 Unknown subcommand 1 Unknown subcommand
@@ -1309,7 +1313,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
--brief Suppress per-file output; show only the final summary --brief Suppress per-file output; show only the final summary
Returns: Exit Status:
0 All binaries verified (or summary shown) 0 All binaries verified (or summary shown)
1 sbctl is not installed 1 sbctl is not installed
@@ -1336,7 +1340,7 @@ Add -i (interactive confirmation) to destructive commands:
otherwise require a password entry. Clears the sudo credential cache otherwise require a password entry. Clears the sudo credential cache
when re-enabling, so the lockdown takes effect immediately. when re-enabling, so the lockdown takes effect immediately.
Returns: Exit Status:
0 Rule toggled 0 Rule toggled
Example: Example:
@@ -1380,7 +1384,7 @@ Add -i (interactive confirmation) to destructive commands:
command The command to run detached command The command to run detached
args... Additional arguments for the command args... Additional arguments for the command
Returns: Exit Status:
0 Command launched successfully 0 Command launched successfully
1 No command provided 1 No command provided
@@ -1401,7 +1405,7 @@ Add -i (interactive confirmation) to destructive commands:
command The command to run detached command The command to run detached
args... Additional arguments for the command args... Additional arguments for the command
Returns: Exit Status:
0 Command launched or help/version shown 0 Command launched or help/version shown
1 No command provided or unknown option 1 No command provided or unknown option
@@ -1422,7 +1426,7 @@ Add -i (interactive confirmation) to destructive commands:
command... Command to run in the new pane; opens a bare fish command... Command to run in the new pane; opens a bare fish
shell if omitted shell if omitted
Returns: Exit Status:
0 Pane opened successfully 0 Pane opened successfully
1 Not running inside Kitty or WezTerm 1 Not running inside Kitty or WezTerm
@@ -1440,7 +1444,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Arguments forwarded to the spawn command args... Arguments forwarded to the spawn command
Returns: Exit Status:
0 Window opened successfully 0 Window opened successfully
1 Not running inside Kitty or WezTerm 1 Not running inside Kitty or WezTerm
@@ -1473,7 +1477,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Arguments forwarded to the terminal's launch command args... Arguments forwarded to the terminal's launch command
Returns: Exit Status:
0 Tab opened successfully 0 Tab opened successfully
1 No supported terminal found 1 No supported terminal found
@@ -1493,10 +1497,13 @@ Add -i (interactive confirmation) to destructive commands:
-h, --help Show usage help -h, --help Show usage help
args... Arguments forwarded to the clipboard tool args... Arguments forwarded to the clipboard tool
Returns: Exit Status:
0 Clipboard contents printed successfully 0 Clipboard contents read successfully
1 No supported clipboard tool found 1 No supported clipboard tool found
Returns:
The clipboard contents, printed to stdout
Example: Example:
p | grep foo p | grep foo
p > file.txt p > file.txt
@@ -1511,10 +1518,13 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Arguments forwarded to the clipboard tool args... Arguments forwarded to the clipboard tool
Returns: Exit Status:
0 Clipboard contents printed successfully 0 Clipboard contents read successfully
1 No supported clipboard tool found 1 No supported clipboard tool found
Returns:
The clipboard contents, printed to stdout
Example: Example:
paste > file.txt paste > file.txt
@@ -1528,7 +1538,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
text Text to copy; reads from stdin if omitted text Text to copy; reads from stdin if omitted
Returns: Exit Status:
0 Text copied to clipboard 0 Text copied to clipboard
1 No clipboard provider found 1 No clipboard provider found
@@ -1565,10 +1575,13 @@ Add -i (interactive confirmation) to destructive commands:
Fetches and prints the machine's public IPv6 address using icanhazip.com. Fetches and prints the machine's public IPv6 address using icanhazip.com.
Prints an error message if IPv6 is unavailable on the current network. Prints an error message if IPv6 is unavailable on the current network.
Returns: Exit Status:
0 IPv6 address printed 0 IPv6 address resolved
1 IPv6 unavailable or not supported on this network 1 IPv6 unavailable or not supported on this network
Returns:
The machine's public IPv6 address, printed to stdout
Example: Example:
gip6 gip6
@@ -1626,7 +1639,7 @@ Add -i (interactive confirmation) to destructive commands:
-h, --help Show help message -h, --help Show help message
-c, --category cat Filter to one category: scrollback, paru, or yay -c, --category cat Filter to one category: scrollback, paru, or yay
Returns: Exit Status:
0 File viewed or no file selected 0 File viewed or no file selected
1 No log files found 1 No log files found
@@ -1648,7 +1661,7 @@ Add -i (interactive confirmation) to destructive commands:
-h, --help Show help message -h, --help Show help message
-n, --no-log Exit without saving a scrollback log -n, --no-log Exit without saving a scrollback log
Returns: Exit Status:
0 Shell session exited 0 Shell session exited
1 Argument parsing failed 1 Argument parsing failed
@@ -1724,7 +1737,7 @@ Add -i (interactive confirmation) to destructive commands:
-s, --silent Suppress all output; errors only (standard UNIX convention) -s, --silent Suppress all output; errors only (standard UNIX convention)
-h, --help Show this help message and exit -h, --help Show this help message and exit
Returns: Exit Status:
0 Setup completed successfully 0 Setup completed successfully
1 Fatal error (git init failed, move failed, etc.) 1 Fatal error (git init failed, move failed, etc.)
@@ -1754,7 +1767,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
ARGS Any arguments forwarded verbatim to the underlying agy binary ARGS Any arguments forwarded verbatim to the underlying agy binary
Returns: Exit Status:
Exit status of the underlying agy binary Exit status of the underlying agy binary
Example: Example:
@@ -1795,7 +1808,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
ARGS Any arguments forwarded verbatim to the underlying claude binary ARGS Any arguments forwarded verbatim to the underlying claude binary
Returns: Exit Status:
Exit status of the underlying claude binary Exit status of the underlying claude binary
Example: Example:
@@ -1860,7 +1873,7 @@ Add -i (interactive confirmation) to destructive commands:
prompt... Prompt forwarded to aichat prompt... Prompt forwarded to aichat
-h, --help Show usage help -h, --help Show usage help
Returns: Exit Status:
aichat's exit status. aichat's exit status.
Example: Example:
@@ -1882,7 +1895,7 @@ Add -i (interactive confirmation) to destructive commands:
-g, --global Apply at user/global scope instead of workspace/project -g, --global Apply at user/global scope instead of workspace/project
-h, --help Show usage help -h, --help Show usage help
Returns: Exit Status:
0 Mode applied successfully 0 Mode applied successfully
1 No on/off mode specified 1 No on/off mode specified
@@ -1907,7 +1920,7 @@ Add -i (interactive confirmation) to destructive commands:
-s, --speed N Encoder speed 0-10 (default: 3, 0 = slowest) -s, --speed N Encoder speed 0-10 (default: 3, 0 = slowest)
-h, --help Show help message -h, --help Show help message
Returns: Exit Status:
0 Conversion complete 0 Conversion complete
1 File not found, missing dependency, or encode step failed 1 File not found, missing dependency, or encode step failed
@@ -1995,7 +2008,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
owner/repo The repository path in owner/name format owner/repo The repository path in owner/name format
Returns: Exit Status:
0 Issues linked and synced (or no unlinked issues found) 0 Issues linked and synced (or no unlinked issues found)
1 Missing required argument or environment variables 1 Missing required argument or environment variables
@@ -2059,10 +2072,14 @@ Add -i (interactive confirmation) to destructive commands:
-m, --man Open the compiled man page via man -l -m, --man Open the compiled man page via man -l
-h, --help Print usage and navigation reference, then exit -h, --help Print usage and navigation reference, then exit
Returns: Exit Status:
0 Manual displayed (or --help printed) 0 Manual displayed
1 Documentation file not found, or required tool not available 1 Documentation file not found, or required tool not available
Returns:
With -h/--help, the usage and navigation reference, printed to stdout.
Otherwise, the manual is shown via the resolved pager (not captured stdout).
Notes: Notes:
The preferred invocation is `help config [...]` — this function is The preferred invocation is `help config [...]` — this function is
registered as a handler in the help wrapper so that syntax works registered as a handler in the help wrapper so that syntax works
@@ -2131,7 +2148,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
-h, --help Print usage and exit -h, --help Print usage and exit
Returns: Exit Status:
0 Exited normally (q or Escape pressed) 0 Exited normally (q or Escape pressed)
1 Unknown flag passed 1 Unknown flag passed
@@ -2150,7 +2167,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args Passed through verbatim to config-settings args Passed through verbatim to config-settings
Returns: Exit Status:
Same as config-settings Same as config-settings
Example: Example:
@@ -2172,7 +2189,7 @@ Add -i (interactive confirmation) to destructive commands:
-f, --force Stash local changes before pulling, then pop the stash -f, --force Stash local changes before pulling, then pop the stash
-n, --dry-run Check for upstream changes without applying them -n, --dry-run Check for upstream changes without applying them
Returns: Exit Status:
0 Config updated (or already up to date) 0 Config updated (or already up to date)
1 Update failed (network error, merge conflict, or not a git repo) 1 Update failed (network error, merge conflict, or not a git repo)
@@ -2192,7 +2209,7 @@ Add -i (interactive confirmation) to destructive commands:
-h, --help Show help message -h, --help Show help message
directory Path to the compose project (defaults to current directory) directory Path to the compose project (defaults to current directory)
Returns: Exit Status:
0 Services updated and running 0 Services updated and running
1 Directory not found or no docker-compose.yml present 1 Directory not found or no docker-compose.yml present
@@ -2222,7 +2239,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
args... Arguments forwarded to the joplin command args... Arguments forwarded to the joplin command
Returns: Exit Status:
0 Joplin ran successfully 0 Joplin ran successfully
1 joplin binary not found in PATH 1 joplin binary not found in PATH
@@ -2252,7 +2269,7 @@ Add -i (interactive confirmation) to destructive commands:
dismiss Stop the per-session reminder dismiss Stop the per-session reminder
-h, --help Show this help -h, --help Show this help
Returns: Exit Status:
0 Success 0 Success
1 Unknown subcommand/flag, kitty missing, or a write failure 1 Unknown subcommand/flag, kitty missing, or a write failure
@@ -2296,7 +2313,7 @@ Add -i (interactive confirmation) to destructive commands:
-v, --verbose Print which browser is being launched -v, --verbose Print which browser is being launched
-h, --help Print usage and exit -h, --help Print usage and exit
Returns: Exit Status:
0 Browser launched 0 Browser launched
1 No URL given, invalid $BROWSER, or no browser found 1 No URL given, invalid $BROWSER, or no browser found
@@ -2320,7 +2337,7 @@ Add -i (interactive confirmation) to destructive commands:
Arguments: Arguments:
commands Bash command string to execute and replay commands Bash command string to execute and replay
Returns: Exit Status:
0 Commands ran successfully and changes were replayed 0 Commands ran successfully and changes were replayed
1 Bash command exited with a non-zero status 1 Bash command exited with a non-zero status
@@ -2358,10 +2375,13 @@ Add -i (interactive confirmation) to destructive commands:
-r, --root Ignore the current sub-directory; link to the repo root -r, --root Ignore the current sub-directory; link to the repo root
-h, --help Print usage and exit -h, --help Print usage and exit
Returns: Exit Status:
0 URL opened (or printed) 0 URL opened, or resolved with -p/--print
1 Not a git repo, no origin remote, or browser launch failed 1 Not a git repo, no origin remote, or browser launch failed
Returns:
With -p/--print, the resolved repository URL, printed to stdout
Notes: Notes:
Typo abbreviation: open-repo (expands to repo-open on space/enter). Typo abbreviation: open-repo (expands to repo-open on space/enter).
@@ -2393,7 +2413,7 @@ Add -i (interactive confirmation) to destructive commands:
command Command to run with sleep inhibition active command Command to run with sleep inhibition active
args... Arguments forwarded to the command args... Arguments forwarded to the command
Returns: Exit Status:
0 Command ran and completed 0 Command ran and completed
1 No command provided 1 No command provided
+1
View File
@@ -66,6 +66,7 @@ SECTIONS = (
"SYNOPSIS", "SYNOPSIS",
"DESCRIPTION", "DESCRIPTION",
"ARGUMENTS", "ARGUMENTS",
"EXIT STATUS",
"RETURNS", "RETURNS",
"EXAMPLE", "EXAMPLE",
"NOTES", "NOTES",
+37
View File
@@ -572,6 +572,43 @@ def test_sidebar_has_no_duplicate_functions_entry():
assert len(labels) == 15, f"expected Overview + 14 categories, got {len(labels)}" assert len(labels) == 15, f"expected Overview + 14 categories, got {len(labels)}"
def test_exit_status_never_describes_stdout_content():
"""EXIT STATUS documents $status; stdout/printed content belongs in RETURNS.
Regression guard for the RETURNS -> EXIT STATUS split: a row like
"0 Patterns appended, or the requested content printed" re-introduces
the exact ambiguity (exit code vs. printed output) the split exists to
remove. A `--stdout`-style flag name is not itself an offense only
"stdout" used as a bare word (not part of a flag) counts.
"""
offenders = []
for name, fn in _parsed_functions().items():
for line in fn.get("EXIT STATUS", []):
if re.search(r"(?<!-)\bstdout\b|\bprinted\b", line, re.IGNORECASE):
offenders.append(f"{name}: {line.strip()}")
assert not offenders, "stdout/printed language leaked into EXIT STATUS:\n " + "\n ".join(
offenders
)
def test_returns_renders_after_exit_status():
"""When a function has both, Exit Status: must render before Returns:."""
import build_manual
fn = {
"SYNOPSIS": ["thing"],
"DESCRIPTION": ["Does a thing."],
"EXIT STATUS": ["0 Always"],
"RETURNS": ["The thing, printed to stdout"],
"EXAMPLE": ["thing"],
}
out = build_manual.render_entry(fn, [])
exit_pos = out.find("Exit Status:")
returns_pos = out.find("Returns:")
assert exit_pos != -1 and returns_pos != -1, f"missing a section head:\n{out}"
assert exit_pos < returns_pos, f"Returns: rendered before Exit Status::\n{out}"
def test_site_avoids_reserved_dir(): def test_site_avoids_reserved_dir():
"""No output directory may collide with a Cloudflare Pages reserved name. """No output directory may collide with a Cloudflare Pages reserved name.
+1 -1
View File
@@ -19,7 +19,7 @@
# scope "universal" or "session" # scope "universal" or "session"
# value "on", "off", "DEFAULT", or any arbitrary string (universal scope only) # value "on", "off", "DEFAULT", or any arbitrary string (universal scope only)
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -24,7 +24,7 @@
# cur_scope "universal" or "session" # cur_scope "universal" or "session"
# var1var7 Variable names for rows 06 (6 categories + master) # var1var7 Variable names for rows 06 (6 categories + master)
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -20,7 +20,7 @@
# cur_row 0-based highlighted row within the page # cur_row 0-based highlighted row within the page
# page "sponge" or "paths" # page "sponge" or "paths"
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+4 -1
View File
@@ -12,8 +12,11 @@
# ARGUMENTS # ARGUMENTS
# varname Variable name without the $ prefix # varname Variable name without the $ prefix
# #
# EXIT STATUS
# 0 Always
#
# RETURNS # RETURNS
# 0 Always; prints the value or "DEFAULT" to stdout # The value, or "DEFAULT" if unset, printed to stdout
# #
# EXAMPLE # EXAMPLE
# set v (__config_settings_get_raw sponge_delay) # "2" or "DEFAULT" # set v (__config_settings_get_raw sponge_delay) # "2" or "DEFAULT"
+4 -1
View File
@@ -14,8 +14,11 @@
# varname Variable name without $ prefix # varname Variable name without $ prefix
# scope "universal" or "session" # scope "universal" or "session"
# #
# EXIT STATUS
# 0 Always
#
# RETURNS # RETURNS
# 0 Always; prints "on", "off", or "DEFAULT" to stdout # "on", "off", or "DEFAULT", printed to stdout
# #
# EXAMPLE # EXAMPLE
# set result (__config_settings_get_val __fish_config_op_aliases universal) # set result (__config_settings_get_val __fish_config_op_aliases universal)
+4 -1
View File
@@ -15,8 +15,11 @@
# active_idx 03, the active page index # active_idx 03, the active page index
# iw inner width in columns to pad the strip to # iw inner width in columns to pad the strip to
# #
# EXIT STATUS
# 0 Always
#
# RETURNS # RETURNS
# 0 Always; prints the tab strip (no trailing newline beyond printf's) # The rendered tab strip, printed to stdout (no trailing newline beyond printf's)
# #
# EXAMPLE # EXAMPLE
# set strip (__config_settings_pagetab 2 76) # set strip (__config_settings_pagetab 2 76)
+10 -7
View File
@@ -21,15 +21,18 @@
# ARGUMENTS # ARGUMENTS
# (none) # (none)
# #
# RETURNS # EXIT STATUS
# 0 A key was read; one of these tokens is printed to stdout: # 0 A key was read
# up down left right arrow keys
# space tab backtab enter escape backspace
# quit Ctrl-C (byte 3) in raw mode
# <char> any other single printable character
# "" nothing decodable was read
# 1 The terminal could not be put into raw mode (stdin is not a TTY) # 1 The terminal could not be put into raw mode (stdin is not a TTY)
# #
# RETURNS
# One token, printed to stdout:
# up down left right arrow keys
# space tab backtab enter escape backspace
# quit Ctrl-C (byte 3) in raw mode
# <char> any other single printable character
# "" nothing decodable was read
#
# EXAMPLE # EXAMPLE
# set -l key (__config_settings_read_key) # set -l key (__config_settings_read_key)
# or return # not a TTY — bail # or return # not a TTY — bail
+1 -1
View File
@@ -17,7 +17,7 @@
# type "list" (whitespace-split) or any other tag (single value) # type "list" (whitespace-split) or any other tag (single value)
# value The new value; empty string erases (reset to default) # value The new value; empty string erases (reset to default)
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -23,7 +23,7 @@
# __fish_config_op_logging, or # __fish_config_op_logging, or
# __fish_config_op_greeting # __fish_config_op_greeting
# #
# RETURNS # EXIT STATUS
# 0 Component enabled (category explicitly truthy; or category unset and master not falsy) # 0 Component enabled (category explicitly truthy; or category unset and master not falsy)
# 1 Component disabled (category explicitly falsy; or category unset and master falsy; or no argument with falsy master) # 1 Component disabled (category explicitly falsy; or category unset and master falsy; or no argument with falsy master)
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# Safe to call at any time; wrapper removal only affects files bearing # Safe to call at any time; wrapper removal only affects files bearing
# the generated version-marker comment. # the generated version-marker comment.
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+5 -2
View File
@@ -18,9 +18,12 @@
# ARGUMENTS # ARGUMENTS
# name Command name to resolve (e.g. paru, yay) # name Command name to resolve (e.g. paru, yay)
# #
# EXIT STATUS
# 0 A non-wrapper binary was found
# 1 No non-wrapper binary found on PATH
#
# RETURNS # RETURNS
# 0 Real binary path printed to stdout # The resolved binary's real path, printed to stdout (nothing on failure)
# 1 No non-wrapper binary found on PATH (nothing printed)
# #
# EXAMPLE # EXAMPLE
# set -l real (__fish_real_command paru) # -> /usr/bin/paru, not the shim # set -l real (__fish_real_command paru) # -> /usr/bin/paru, not the shim
+1 -1
View File
@@ -23,7 +23,7 @@
# ARGUMENTS # ARGUMENTS
# (none) # (none)
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -12,7 +12,7 @@
# ARGUMENTS # ARGUMENTS
# variable_name Name of the variable to check (without $ prefix) # variable_name Name of the variable to check (without $ prefix)
# #
# RETURNS # EXIT STATUS
# 0 True (opt-in): value matches 1, true, yes, on, or y # 0 True (opt-in): value matches 1, true, yes, on, or y
# 1 False (opt-out): value matches 0, false, no, off, or n # 1 False (opt-out): value matches 0, false, no, off, or n
# 2 Empty: variable is unset or empty # 2 Empty: variable is unset or empty
+1 -1
View File
@@ -9,7 +9,7 @@
# into the command line at the cursor position. Bound to @@ by default. # into the command line at the cursor position. Bound to @@ by default.
# Repaints the prompt after selection or cancellation. # Repaints the prompt after selection or cancellation.
# #
# RETURNS # EXIT STATUS
# 0 Always; no-op if fzf is cancelled # 0 Always; no-op if fzf is cancelled
# #
# EXAMPLE # EXAMPLE
+4 -1
View File
@@ -9,8 +9,11 @@
# order: $KITTY_CONFIG_DIRECTORY, else $XDG_CONFIG_HOME/kitty, else # order: $KITTY_CONFIG_DIRECTORY, else $XDG_CONFIG_HOME/kitty, else
# ~/.config/kitty. # ~/.config/kitty.
# #
# EXIT STATUS
# 0 Always
#
# RETURNS # RETURNS
# 0 Always (path printed to stdout) # The Kitty configuration directory path, printed to stdout
# #
# EXAMPLE # EXAMPLE
# set -l dir (__kitty_logging_dir) # set -l dir (__kitty_logging_dir)
+1 -1
View File
@@ -9,7 +9,7 @@
# (non-commented) `watcher` directive — whether the fish-config managed one or # (non-commented) `watcher` directive — whether the fish-config managed one or
# a user's own. Used to suppress the setup reminder and to inform status. # a user's own. Used to suppress the setup reminder and to inform status.
# #
# RETURNS # EXIT STATUS
# 0 An active watcher directive is present # 0 An active watcher directive is present
# 1 None present, or kitty.conf does not exist # 1 None present, or kitty.conf does not exist
# #
+4 -1
View File
@@ -11,8 +11,11 @@
# ARGUMENTS # ARGUMENTS
# file Path to a watcher script # file Path to a watcher script
# #
# EXIT STATUS
# 0 Always
#
# RETURNS # RETURNS
# 0 Always (integer printed to stdout) # The watcher version as an integer (0 if absent), printed to stdout
# #
# EXAMPLE # EXAMPLE
# __kitty_logging_version ~/.config/kitty/fish-config-watcher.py # __kitty_logging_version ~/.config/kitty/fish-config-watcher.py
+1 -1
View File
@@ -24,7 +24,7 @@
# label Short description used in the block comment header # label Short description used in the block comment header
# pattern One or more gitignore patterns to ensure are present # pattern One or more gitignore patterns to ensure are present
# #
# RETURNS # EXIT STATUS
# 0 All patterns already ignored or successfully appended # 0 All patterns already ignored or successfully appended
# 1 Could not write to .gitignore # 1 Could not write to .gitignore
# #
+1 -1
View File
@@ -15,7 +15,7 @@
# ARGUMENTS # ARGUMENTS
# agents_dir Absolute path to the AGENTS/ sub-repo root # agents_dir Absolute path to the AGENTS/ sub-repo root
# #
# RETURNS # EXIT STATUS
# 0 Tooling is current or was installed/updated successfully # 0 Tooling is current or was installed/updated successfully
# 1 Canonical source missing or a copy failed # 1 Canonical source missing or a copy failed
# #
+1 -1
View File
@@ -19,7 +19,7 @@
# ARGUMENTS # ARGUMENTS
# dir Absolute path to the git repository to fast-forward # dir Absolute path to the git repository to fast-forward
# #
# RETURNS # EXIT STATUS
# 0 Fast-forward applied (or already up to date) # 0 Fast-forward applied (or already up to date)
# 1 A precondition failed; nothing was changed # 1 A precondition failed; nothing was changed
# #
+5 -2
View File
@@ -49,9 +49,12 @@ end
# ARGUMENTS # ARGUMENTS
# bin The binary name to look up in the catalog # bin The binary name to look up in the catalog
# #
# EXIT STATUS
# 0 Binary found in the catalog
# 1 Binary not found
#
# RETURNS # RETURNS
# 0 Index printed to stdout # The binary's 1-based catalog index, printed to stdout (nothing on failure)
# 1 Binary not found (empty output)
# #
# EXAMPLE # EXAMPLE
# _fish_deps_catalog_idx fzf # _fish_deps_catalog_idx fzf
+1 -1
View File
@@ -12,7 +12,7 @@
# ARGUMENTS # ARGUMENTS
# pkg The package name to install # pkg The package name to install
# #
# RETURNS # EXIT STATUS
# 0 Package installed successfully # 0 Package installed successfully
# 1 No supported package manager found # 1 No supported package manager found
# #
+1 -1
View File
@@ -12,7 +12,7 @@
# ARGUMENTS # ARGUMENTS
# pkg The package name to upgrade # pkg The package name to upgrade
# #
# RETURNS # EXIT STATUS
# 0 Package upgraded successfully # 0 Package upgraded successfully
# 1 No supported package manager found # 1 No supported package manager found
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# -s, --silent Suppress all output # -s, --silent Suppress all output
# dir The directory path to create # dir The directory path to create
# #
# RETURNS # EXIT STATUS
# 0 Directory created or already exists # 0 Directory created or already exists
# 1 No target directory specified or mkdir failed # 1 No target directory specified or mkdir failed
# #
+1 -1
View File
@@ -20,7 +20,7 @@
# ARGUMENTS # ARGUMENTS
# prefix Log-name prefix to prune (e.g. tmux, zellij) # prefix Log-name prefix to prune (e.g. tmux, zellij)
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -10,7 +10,7 @@
# after evaluation. No-ops if qalc is not installed or the buffer # after evaluation. No-ops if qalc is not installed or the buffer
# is empty. Intended to be bound to a key in key_bindings.fish. # is empty. Intended to be bound to a key in key_bindings.fish.
# #
# RETURNS # EXIT STATUS
# 1 qalc not found in PATH # 1 qalc not found in PATH
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -12,7 +12,7 @@
# unset) or tmux is missing. Shared by conf.d/tmux-logging.fish (shell # unset) or tmux is missing. Shared by conf.d/tmux-logging.fish (shell
# startup) and __fish_config_sync_logging (C5 re-enable) so both stay in sync. # startup) and __fish_config_sync_logging (C5 re-enable) so both stay in sync.
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -17,7 +17,7 @@
# No-op when logging is disabled, not inside Zellij ($ZELLIJ unset), or the # No-op when logging is disabled, not inside Zellij ($ZELLIJ unset), or the
# zellij binary is missing. # zellij binary is missing.
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -66,7 +66,7 @@
# -s, --silent Suppress all output; errors only (standard UNIX convention) # -s, --silent Suppress all output; errors only (standard UNIX convention)
# -h, --help Show this help message and exit # -h, --help Show this help message and exit
# #
# RETURNS # EXIT STATUS
# 0 Setup completed successfully # 0 Setup completed successfully
# 1 Fatal error (git init failed, move failed, etc.) # 1 Fatal error (git init failed, move failed, etc.)
# #
+1 -1
View File
@@ -25,7 +25,7 @@
# ARGUMENTS # ARGUMENTS
# ARGS Any arguments forwarded verbatim to the underlying agy binary # ARGS Any arguments forwarded verbatim to the underlying agy binary
# #
# RETURNS # EXIT STATUS
# Exit status of the underlying agy binary # Exit status of the underlying agy binary
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -29,7 +29,7 @@
# status Show enabled/disabled state, repo count, and registry path # status Show enabled/disabled state, repo count, and registry path
# -h, --help Show this help message # -h, --help Show this help message
# #
# RETURNS # EXIT STATUS
# 0 Subcommand succeeded # 0 Subcommand succeeded
# 1 Bad usage, target is not a git repo, or target not registered # 1 Bad usage, target is not a git repo, or target not registered
# #
+1 -1
View File
@@ -15,7 +15,7 @@
# ARGUMENTS # ARGUMENTS
# owner/repo The repository path in owner/name format # owner/repo The repository path in owner/name format
# #
# RETURNS # EXIT STATUS
# 0 Issues linked and synced (or no unlinked issues found) # 0 Issues linked and synced (or no unlinked issues found)
# 1 Missing required argument or environment variables # 1 Missing required argument or environment variables
# #
+1 -1
View File
@@ -16,7 +16,7 @@
# command The command to run detached # command The command to run detached
# args... Additional arguments for the command # args... Additional arguments for the command
# #
# RETURNS # EXIT STATUS
# 0 Command launched successfully # 0 Command launched successfully
# 1 No command provided # 1 No command provided
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# branch_name Branch to switch to or create # branch_name Branch to switch to or create
# #
# RETURNS # EXIT STATUS
# 0 Branch checked out or created # 0 Branch checked out or created
# 1 Not inside a git work tree # 1 Not inside a git work tree
# #
+1 -1
View File
@@ -25,7 +25,7 @@
# ARGUMENTS # ARGUMENTS
# ARGS Any arguments forwarded verbatim to the underlying claude binary # ARGS Any arguments forwarded verbatim to the underlying claude binary
# #
# RETURNS # EXIT STATUS
# Exit status of the underlying claude binary # Exit status of the underlying claude binary
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# args... Arguments forwarded to clone-in-kitty (typically a repo URL) # args... Arguments forwarded to clone-in-kitty (typically a repo URL)
# #
# RETURNS # EXIT STATUS
# 0 Repository cloned # 0 Repository cloned
# 1 Not running inside Kitty terminal # 1 Not running inside Kitty terminal
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# args... Arguments forwarded to clone-in-kitty (typically a repo URL) # args... Arguments forwarded to clone-in-kitty (typically a repo URL)
# #
# RETURNS # EXIT STATUS
# 0 Repository cloned # 0 Repository cloned
# 1 Not running inside Kitty terminal # 1 Not running inside Kitty terminal
# #
+6 -2
View File
@@ -32,10 +32,14 @@
# -m, --man Open the compiled man page via man -l # -m, --man Open the compiled man page via man -l
# -h, --help Print usage and navigation reference, then exit # -h, --help Print usage and navigation reference, then exit
# #
# RETURNS # EXIT STATUS
# 0 Manual displayed (or --help printed) # 0 Manual displayed
# 1 Documentation file not found, or required tool not available # 1 Documentation file not found, or required tool not available
# #
# RETURNS
# With -h/--help, the usage and navigation reference, printed to stdout.
# Otherwise, the manual is shown via the resolved pager (not captured stdout).
#
# EXAMPLE # EXAMPLE
# config-help # config-help
# config-help keybindings # config-help keybindings
+1 -1
View File
@@ -56,7 +56,7 @@
# ARGUMENTS # ARGUMENTS
# -h, --help Print usage and exit # -h, --help Print usage and exit
# #
# RETURNS # EXIT STATUS
# 0 Exited normally (q or Escape pressed) # 0 Exited normally (q or Escape pressed)
# 1 Unknown flag passed # 1 Unknown flag passed
# #
+1 -1
View File
@@ -17,7 +17,7 @@
# ARGUMENTS # ARGUMENTS
# args Passed through verbatim to config-settings # args Passed through verbatim to config-settings
# #
# RETURNS # EXIT STATUS
# Same as config-settings # Same as config-settings
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -18,7 +18,7 @@
# -f, --force Stash local changes before pulling, then pop the stash # -f, --force Stash local changes before pulling, then pop the stash
# -n, --dry-run Check for upstream changes without applying them # -n, --dry-run Check for upstream changes without applying them
# #
# RETURNS # EXIT STATUS
# 0 Config updated (or already up to date) # 0 Config updated (or already up to date)
# 1 Update failed (network error, merge conflict, or not a git repo) # 1 Update failed (network error, merge conflict, or not a git repo)
# #
+1 -1
View File
@@ -18,7 +18,7 @@
# command The command to run detached # command The command to run detached
# args... Additional arguments for the command # args... Additional arguments for the command
# #
# RETURNS # EXIT STATUS
# 0 Command launched or help/version shown # 0 Command launched or help/version shown
# 1 No command provided or unknown option # 1 No command provided or unknown option
# #
+1 -1
View File
@@ -19,7 +19,7 @@
# -s, --speed N Encoder speed 0-10 (default: 3, 0 = slowest) # -s, --speed N Encoder speed 0-10 (default: 3, 0 = slowest)
# -h, --help Show help message # -h, --help Show help message
# #
# RETURNS # EXIT STATUS
# 0 Conversion complete # 0 Conversion complete
# 1 File not found, missing dependency, or encode step failed # 1 File not found, missing dependency, or encode step failed
# #
+1 -1
View File
@@ -15,7 +15,7 @@
# -h, --help Show help message # -h, --help Show help message
# directory Path to the compose project (defaults to current directory) # directory Path to the compose project (defaults to current directory)
# #
# RETURNS # EXIT STATUS
# 0 Services updated and running # 0 Services updated and running
# 1 Directory not found or no docker-compose.yml present # 1 Directory not found or no docker-compose.yml present
# #
+1 -1
View File
@@ -31,7 +31,7 @@
# -s, --silent Suppress all output, including the editor's # -s, --silent Suppress all output, including the editor's
# -h, --help Show this help message # -h, --help Show this help message
# #
# RETURNS # EXIT STATUS
# 0 Editor launched successfully # 0 Editor launched successfully
# 1 Conflicting flags, no editor found, or clipboard read failed # 1 Conflicting flags, no editor found, or clipboard read failed
# #
+1 -1
View File
@@ -16,7 +16,7 @@
# ARGUMENTS # ARGUMENTS
# command_prefix Search history for the newest command matching this # command_prefix Search history for the newest command matching this
# #
# RETURNS # EXIT STATUS
# The edited command's exit status, or a message when history lookup # The edited command's exit status, or a message when history lookup
# found nothing. # found nothing.
# #
+1 -1
View File
@@ -35,7 +35,7 @@
# update Update all installed deps # update Update all installed deps
# sync Install missing deps, then update all # sync Install missing deps, then update all
# #
# RETURNS # EXIT STATUS
# 0 Subcommand completed # 0 Subcommand completed
# 1 Unknown subcommand # 1 Unknown subcommand
# #
+1 -1
View File
@@ -9,7 +9,7 @@
# that would prepend to the prompt line and break the two-line nim layout. # that would prepend to the prompt line and break the two-line nim layout.
# Vi-mode display is handled inside fish_prompt itself. # Vi-mode display is handled inside fish_prompt itself.
# #
# RETURNS # EXIT STATUS
# 0 Always (function body is empty) # 0 Always (function body is empty)
# #
# EXAMPLE # EXAMPLE
+4 -1
View File
@@ -10,8 +10,11 @@
# C3 overrides are disabled. Has no external dependencies; uses only fish-provided functions # C3 overrides are disabled. Has no external dependencies; uses only fish-provided functions
# (set_color, fish_git_prompt, prompt_pwd, prompt_hostname). # (set_color, fish_git_prompt, prompt_pwd, prompt_hostname).
# #
# EXIT STATUS
# 0 Always
#
# RETURNS # RETURNS
# 0 Always; outputs the prompt to stdout # The rendered two-line prompt, printed to stdout
# #
# EXAMPLE # EXAMPLE
# # Rendered automatically by fish; not called directly. # # Rendered automatically by fish; not called directly.
+1 -1
View File
@@ -11,7 +11,7 @@
# context (if non-default) — that block is paired with the starship prompt # context (if non-default) — that block is paired with the starship prompt
# which already guards on both conditions. # which already guards on both conditions.
# #
# RETURNS # EXIT STATUS
# 0 Always # 0 Always
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -19,7 +19,7 @@
# --variables=key Override the variables search binding (default: Ctrl-V) # --variables=key Override the variables search binding (default: Ctrl-V)
# -h, --help Show help message # -h, --help Show help message
# #
# RETURNS # EXIT STATUS
# 0 Bindings installed or help shown # 0 Bindings installed or help shown
# 22 Invalid option or positional argument provided # 22 Invalid option or positional argument provided
# #
+6 -2
View File
@@ -22,10 +22,14 @@
# -s, --stdout Print API output to stdout instead of .gitignore # -s, --stdout Print API output to stdout instead of .gitignore
# targets Comma- or space-separated list of language/tool names # targets Comma- or space-separated list of language/tool names
# #
# RETURNS # EXIT STATUS
# 0 Patterns appended or printed # 0 Patterns appended, or resolved with -s/--stdout or -l/--list
# 1 Not in a git repository or API fetch failed # 1 Not in a git repository or API fetch failed
# #
# RETURNS
# With -s/--stdout, the fetched .gitignore pattern text, printed to stdout.
# With -l/--list, the supported target list, printed to stdout.
#
# EXAMPLE # EXAMPLE
# gi python,venv # gi python,venv
# gi -b -p # gi -b -p
+5 -2
View File
@@ -11,10 +11,13 @@
# Fetches and prints the machine's public IPv6 address using icanhazip.com. # Fetches and prints the machine's public IPv6 address using icanhazip.com.
# Prints an error message if IPv6 is unavailable on the current network. # Prints an error message if IPv6 is unavailable on the current network.
# #
# RETURNS # EXIT STATUS
# 0 IPv6 address printed # 0 IPv6 address resolved
# 1 IPv6 unavailable or not supported on this network # 1 IPv6 unavailable or not supported on this network
# #
# RETURNS
# The machine's public IPv6 address, printed to stdout
#
# EXAMPLE # EXAMPLE
# gip6 # gip6
function gip6 --description 'Get public IPv6 address' function gip6 --description 'Get public IPv6 address'
+1 -1
View File
@@ -16,7 +16,7 @@
# -h, --help Show help message # -h, --help Show help message
# -f, --force Force-delete unmerged orphaned branches (git branch -D) # -f, --force Force-delete unmerged orphaned branches (git branch -D)
# #
# RETURNS # EXIT STATUS
# 0 Cleanup complete # 0 Cleanup complete
# 1 Argument parsing failed # 1 Argument parsing failed
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# args... Forwarded verbatim to git fetch # args... Forwarded verbatim to git fetch
# #
# RETURNS # EXIT STATUS
# 0 Fetch and status succeeded # 0 Fetch and status succeeded
# 1 Not inside a git work tree # 1 Not inside a git work tree
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# args... Arguments forwarded to the joplin command # args... Arguments forwarded to the joplin command
# #
# RETURNS # EXIT STATUS
# 0 Joplin ran successfully # 0 Joplin ran successfully
# 1 joplin binary not found in PATH # 1 joplin binary not found in PATH
# #
+1 -1
View File
@@ -27,7 +27,7 @@
# dismiss Stop the per-session reminder # dismiss Stop the per-session reminder
# -h, --help Show this help # -h, --help Show this help
# #
# RETURNS # EXIT STATUS
# 0 Success # 0 Success
# 1 Unknown subcommand/flag, kitty missing, or a write failure # 1 Unknown subcommand/flag, kitty missing, or a write failure
# #
+1 -1
View File
@@ -25,7 +25,7 @@
# -h, --help Show help message # -h, --help Show help message
# -c, --category cat Filter to one category: scrollback, paru, or yay # -c, --category cat Filter to one category: scrollback, paru, or yay
# #
# RETURNS # EXIT STATUS
# 0 File viewed or no file selected # 0 File viewed or no file selected
# 1 No log files found # 1 No log files found
# #
+1 -1
View File
@@ -18,7 +18,7 @@
# -s, --silent Suppress directory creation output # -s, --silent Suppress directory creation output
# <dir> Directory to create and enter # <dir> Directory to create and enter
# #
# RETURNS # EXIT STATUS
# 0 Directory created (or already existed) and entered successfully # 0 Directory created (or already existed) and entered successfully
# 1 Directory creation or cd failed # 1 Directory creation or cd failed
# #
+1 -1
View File
@@ -30,7 +30,7 @@
# -v, --verbose Print which browser is being launched # -v, --verbose Print which browser is being launched
# -h, --help Print usage and exit # -h, --help Print usage and exit
# #
# RETURNS # EXIT STATUS
# 0 Browser launched # 0 Browser launched
# 1 No URL given, invalid $BROWSER, or no browser found # 1 No URL given, invalid $BROWSER, or no browser found
# #
+5 -2
View File
@@ -15,10 +15,13 @@
# -h, --help Show usage help # -h, --help Show usage help
# args... Arguments forwarded to the clipboard tool # args... Arguments forwarded to the clipboard tool
# #
# RETURNS # EXIT STATUS
# 0 Clipboard contents printed successfully # 0 Clipboard contents read successfully
# 1 No supported clipboard tool found # 1 No supported clipboard tool found
# #
# RETURNS
# The clipboard contents, printed to stdout
#
# EXAMPLE # EXAMPLE
# p | grep foo # p | grep foo
# p > file.txt # p > file.txt
+1 -1
View File
@@ -12,7 +12,7 @@
# pacman -Qi previews, then removes the selected packages using paru or yay. # pacman -Qi previews, then removes the selected packages using paru or yay.
# Arch Linux only. # Arch Linux only.
# #
# RETURNS # EXIT STATUS
# 0 Packages removed or none selected # 0 Packages removed or none selected
# 1 No AUR helper (paru or yay) found # 1 No AUR helper (paru or yay) found
# #
+5 -2
View File
@@ -14,10 +14,13 @@
# ARGUMENTS # ARGUMENTS
# args... Arguments forwarded to the clipboard tool # args... Arguments forwarded to the clipboard tool
# #
# RETURNS # EXIT STATUS
# 0 Clipboard contents printed successfully # 0 Clipboard contents read successfully
# 1 No supported clipboard tool found # 1 No supported clipboard tool found
# #
# RETURNS
# The clipboard contents, printed to stdout
#
# EXAMPLE # EXAMPLE
# paste > file.txt # paste > file.txt
function paste --description 'Paste from clipboard' function paste --description 'Paste from clipboard'
+1 -1
View File
@@ -27,7 +27,7 @@
# -u, --uninstall Force uninstall mode # -u, --uninstall Force uninstall mode
# package One or more package names to install or remove # package One or more package names to install or remove
# #
# RETURNS # EXIT STATUS
# 0 Operation completed # 0 Operation completed
# 1 No supported package manager found, unknown flag, or package operation failed # 1 No supported package manager found, unknown flag, or package operation failed
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# file One or more file paths to create # file One or more file paths to create
# #
# RETURNS # EXIT STATUS
# 0 Files created # 0 Files created
# 1 No file argument provided # 1 No file argument provided
# #
+1 -1
View File
@@ -22,7 +22,7 @@
# prompt... Prompt forwarded to aichat # prompt... Prompt forwarded to aichat
# -h, --help Show usage help # -h, --help Show usage help
# #
# RETURNS # EXIT STATUS
# aichat's exit status. # aichat's exit status.
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -15,7 +15,7 @@
# ARGUMENTS # ARGUMENTS
# commands Bash command string to execute and replay # commands Bash command string to execute and replay
# #
# RETURNS # EXIT STATUS
# 0 Commands ran successfully and changes were replayed # 0 Commands ran successfully and changes were replayed
# 1 Bash command exited with a non-zero status # 1 Bash command exited with a non-zero status
# #
+5 -2
View File
@@ -37,10 +37,13 @@
# -r, --root Ignore the current sub-directory; link to the repo root # -r, --root Ignore the current sub-directory; link to the repo root
# -h, --help Print usage and exit # -h, --help Print usage and exit
# #
# RETURNS # EXIT STATUS
# 0 URL opened (or printed) # 0 URL opened, or resolved with -p/--print
# 1 Not a git repo, no origin remote, or browser launch failed # 1 Not a git repo, no origin remote, or browser launch failed
# #
# RETURNS
# With -p/--print, the resolved repository URL, printed to stdout
#
# EXAMPLE # EXAMPLE
# repo-open # open current branch (+ subdir) in browser # repo-open # open current branch (+ subdir) in browser
# repo-open --print # just print the URL # repo-open --print # just print the URL
+1 -1
View File
@@ -25,7 +25,7 @@
# -r, -R, --recursive Forwarded to trash put alongside path arguments # -r, -R, --recursive Forwarded to trash put alongside path arguments
# args... Files or paths to trash or remove # args... Files or paths to trash or remove
# #
# RETURNS # EXIT STATUS
# 0 Operation succeeded # 0 Operation succeeded
# 1 trash put failed or file not found # 1 trash put failed or file not found
# #
+1 -1
View File
@@ -16,7 +16,7 @@
# ARGUMENTS # ARGUMENTS
# --brief Suppress per-file output; show only the final summary # --brief Suppress per-file output; show only the final summary
# #
# RETURNS # EXIT STATUS
# 0 All binaries verified (or summary shown) # 0 All binaries verified (or summary shown)
# 1 sbctl is not installed # 1 sbctl is not installed
# #
+1 -1
View File
@@ -19,7 +19,7 @@
# -d, --dry-run Show targets without deleting # -d, --dry-run Show targets without deleting
# -h, --help Show usage help # -h, --help Show usage help
# #
# RETURNS # EXIT STATUS
# 0 Sweep completed (or dry run shown) # 0 Sweep completed (or dry run shown)
# 1 fd not found, or unknown argument provided # 1 fd not found, or unknown argument provided
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# args... Arguments forwarded to paru or yay # args... Arguments forwarded to paru or yay
# #
# RETURNS # EXIT STATUS
# 0 AUR helper ran successfully # 0 AUR helper ran successfully
# 1 No AUR helper (paru or yay) found # 1 No AUR helper (paru or yay) found
# #
+1 -1
View File
@@ -17,7 +17,7 @@
# -h, --help Show help message # -h, --help Show help message
# -n, --no-log Exit without saving a scrollback log # -n, --no-log Exit without saving a scrollback log
# #
# RETURNS # EXIT STATUS
# 0 Shell session exited # 0 Shell session exited
# 1 Argument parsing failed # 1 Argument parsing failed
# #
+1 -1
View File
@@ -18,7 +18,7 @@
# command... Command to run in the new pane; opens a bare fish # command... Command to run in the new pane; opens a bare fish
# shell if omitted # shell if omitted
# #
# RETURNS # EXIT STATUS
# 0 Pane opened successfully # 0 Pane opened successfully
# 1 Not running inside Kitty or WezTerm # 1 Not running inside Kitty or WezTerm
# #
+1 -1
View File
@@ -21,7 +21,7 @@
# exit_code Exit code of the command (unused) # exit_code Exit code of the command (unused)
# previously_in_history "true"/"false" flag (unused) # previously_in_history "true"/"false" flag (unused)
# #
# RETURNS # EXIT STATUS
# 0 Command contains a secret value — filter out of history # 0 Command contains a secret value — filter out of history
# 1 No secret value found — keep in history # 1 No secret value found — keep in history
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# args... Arguments forwarded to the spawn command # args... Arguments forwarded to the spawn command
# #
# RETURNS # EXIT STATUS
# 0 Window opened successfully # 0 Window opened successfully
# 1 Not running inside Kitty or WezTerm # 1 Not running inside Kitty or WezTerm
# #
+1 -1
View File
@@ -13,7 +13,7 @@
# otherwise require a password entry. Clears the sudo credential cache # otherwise require a password entry. Clears the sudo credential cache
# when re-enabling, so the lockdown takes effect immediately. # when re-enabling, so the lockdown takes effect immediately.
# #
# RETURNS # EXIT STATUS
# 0 Rule toggled # 0 Rule toggled
# #
# EXAMPLE # EXAMPLE
+1 -1
View File
@@ -18,7 +18,7 @@
# -g, --global Apply at user/global scope instead of workspace/project # -g, --global Apply at user/global scope instead of workspace/project
# -h, --help Show usage help # -h, --help Show usage help
# #
# RETURNS # EXIT STATUS
# 0 Mode applied successfully # 0 Mode applied successfully
# 1 No on/off mode specified # 1 No on/off mode specified
# #
+1 -1
View File
@@ -15,7 +15,7 @@
# ARGUMENTS # ARGUMENTS
# args... Arguments forwarded to the terminal's launch command # args... Arguments forwarded to the terminal's launch command
# #
# RETURNS # EXIT STATUS
# 0 Tab opened successfully # 0 Tab opened successfully
# 1 No supported terminal found # 1 No supported terminal found
# #
+1 -1
View File
@@ -11,7 +11,7 @@
# Runs a full system upgrade via paru or yay with --noconfirm. Falls # Runs a full system upgrade via paru or yay with --noconfirm. Falls
# back to yay if paru is not installed. Arch Linux only. # back to yay if paru is not installed. Arch Linux only.
# #
# RETURNS # EXIT STATUS
# 0 Upgrade completed successfully # 0 Upgrade completed successfully
# 1 No AUR helper (paru or yay) found # 1 No AUR helper (paru or yay) found
# #
+1 -1
View File
@@ -15,7 +15,7 @@
# command Command to run with sleep inhibition active # command Command to run with sleep inhibition active
# args... Arguments forwarded to the command # args... Arguments forwarded to the command
# #
# RETURNS # EXIT STATUS
# 0 Command ran and completed # 0 Command ran and completed
# 1 No command provided # 1 No command provided
# #
+1 -1
View File
@@ -14,7 +14,7 @@
# ARGUMENTS # ARGUMENTS
# text Text to copy; reads from stdin if omitted # text Text to copy; reads from stdin if omitted
# #
# RETURNS # EXIT STATUS
# 0 Text copied to clipboard # 0 Text copied to clipboard
# 1 No clipboard provider found # 1 No clipboard provider found
# #
+1 -1
View File
@@ -60,7 +60,7 @@ end
# ARGUMENTS # ARGUMENTS
# check The string to compare against the first non-switch token # check The string to compare against the first non-switch token
# #
# RETURNS # EXIT STATUS
# 0 First token equals check # 0 First token equals check
# 1 No token or token does not match # 1 No token or token does not match
# #