mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
The Apple computer operating system was renamed from "OS X" to "macOS" in 2016. We should accept "macos" instead of "osx" in all our CLI APIs, and the docs should also mention this alias instead of "osx". For backwards compatibility and for compatibility with the tldr client specification, we should still accept "osx" though.
24 lines
1.2 KiB
Text
24 lines
1.2 KiB
Text
#
|
|
# Completions for the tealdeer implementation of tldr
|
|
# https://github.com/dbrgn/tealdeer/
|
|
#
|
|
|
|
complete -c tldr -s h -l help -d 'Print the help message.' -f
|
|
complete -c tldr -s v -l version -d 'Show version information.' -f
|
|
complete -c tldr -s l -l list -d 'List all commands in the cache.' -f
|
|
complete -c tldr -s f -l render -d 'Render a specific markdown file.' -r
|
|
complete -c tldr -s p -l platform -d 'Override the operating system.' -xa 'linux macos sunos windows'
|
|
complete -c tldr -s u -l update -d 'Update the local cache.' -f
|
|
complete -c tldr -s c -l clear-cache -d 'Clear the local cache.' -f
|
|
complete -c tldr -s p -l pager -d 'Use a pager to page output.' -f
|
|
complete -c tldr -s r -l raw -d 'Display the raw markdown instead of rendering it.' -f
|
|
complete -c tldr -s q -l quiet -d 'Suppress informational messages.' -f
|
|
complete -c tldr -l show-paths -d 'Show file and directory paths used by tealdeer.' -f
|
|
complete -c tldr -l seed-config -d 'Create a basic config.' -f
|
|
complete -c tldr -l color -d 'Controls when to use color.' -xa 'always auto never'
|
|
|
|
function __tealdeer_entries
|
|
tldr --list | string replace -a -i -r "\,\s" "\n"
|
|
end
|
|
|
|
complete -f -c tldr -a '(__tealdeer_entries)'
|