fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
e9bf8b9a4
master
1set -l _sub_commands'login login_cli activate logout auth tui whoami whois notifications instance search thread timeline post upload delete favourite unfavourite reblog unreblog reblogged_by pin unpin follow unfollow mute unmute block unblock' 2 3function __fish_complete_toot_accounts 4toot auth| awk '/^\*/{print $2}' 5end 6 7# No file completion for most subcomands 8complete -c toot -f 9 10# # Subcommands 11complete -c toot -a activate -n __fish_is_first_token -d'Switch between accounts.' 12complete -c toot -a auth -n __fish_is_first_token -d'Show logged in accounts and instances' 13complete -c toot -a instance -n __fish_is_first_token -d'Display instance details' 14complete -c toot -a login -n __fish_is_first_token -d'Log in using your browser' 15complete -c toot -a login_cli -n __fish_is_first_token -d'Log in from the console' 16complete -c toot -a logout -n __fish_is_first_token -d'Log out' 17complete -c toot -a notifications -n __fish_is_first_token -d'Show notifications' 18complete -c toot -a post -n __fish_is_first_token -d'Post a status text' 19complete -c toot -a search -n __fish_is_first_token -d'Search for users or hashtags' 20complete -c toot -a thread -n __fish_is_first_token -d'Show toot thread items' 21complete -c toot -a timeline -n __fish_is_first_token -d'Show recent items' 22complete -c toot -a tui -n __fish_is_first_token -d'Toot terminal user interface' 23complete -c toot -a upload -n __fish_is_first_token -d'Upload a file' 24complete -c toot -a whoami -n __fish_is_first_token -d'Display user details' 25complete -c toot -a whois -n __fish_is_first_token -d'Display account details' 26complete -c toot -a delete -n __fish_is_first_token -d'Delete a status' 27complete -c toot -a favourite -n __fish_is_first_token -d'Favourite a status' 28complete -c toot -a pin -n __fish_is_first_token -d'Pin a status' 29complete -c toot -a reblog -n __fish_is_first_token -d'Reblog a status' 30complete -c toot -a reblogged_by -n __fish_is_first_token -d'Show rebloggers of status' 31complete -c toot -a unfavourite -n __fish_is_first_token -d'Unfavourite a status' 32complete -c toot -a unpin -n __fish_is_first_token -d'Unpin a status' 33complete -c toot -a unreblog -n __fish_is_first_token -d'Unreblog a status' 34 35# Accounts 36complete -c toot -a follow -n __fish_is_first_token -d'Follow an account' 37complete -c toot -a unfollow -n __fish_is_first_token -d'Unfollow an account' 38complete -c toot -a mute -n __fish_is_first_token -d'Mute an account' 39complete -c toot -a unmute -n __fish_is_first_token -d'Unmute an account' 40complete -c toot -a block -n __fish_is_first_token -d'Block an account' 41complete -c toot -a unblock -n __fish_is_first_token -d'Unblock an account' 42 43# Parameters common to all subcommands 44complete -c toot -n"__fish_seen_subcommand_from $_sub_commands " -l debug -d'show debug log' 45complete -c toot -n"__fish_seen_subcommand_from $_sub_commands " -l no-color -d"no colors in output" 46complete -c toot -n"__fish_seen_subcommand_from $_sub_commands " -l quiet -d"don't write to stdout on success" 47complete -c toot -n"__fish_seen_subcommand_from $_sub_commands " -s h -l help -d'show help message' 48 49# Parameters common to some subcommands 50complete -c toot -n'__fish_seen_subcommand_from activate logout' -a"(__fish_complete_toot_accounts)" 51complete -c toot -n'__fish_seen_subcommand_from login login_cli instance' -l disable-https -d'disable HTTPS' 52complete -c toot -n'__fish_seen_subcommand_from login login_cli timeline' -s i -l instance -x -d'mastodon instance' 53complete -c toot -n'__fish_seen_subcommand_from tui whoami whois notifications search thread timeline post upload delete favourite unfavourite reblog unreblog pin unpin follow unfollow mute unmute block unblock' -s u -l using -x -a"(__fish_complete_toot_accounts)" -d'account to use' 54complete -c toot -n'__fish_seen_subcommand_from notifications timeline' -s r -l reverse -x -d'reverse order of output' 55complete -c toot -n'__fish_seen_subcommand_from post upload' -s d -l description -x -d'alt text for media file' 56 57# Parameters for login_cli 58complete -c toot -n'__fish_seen_subcommand_from login_cli' -s e -l email -x -d'email address' 59 60# Parameters for notifications 61complete -c toot -n'__fish_seen_subcommand_from notifications' -l clear -d'delete all notifications' 62complete -c toot -n'__fish_seen_subcommand_from notifications' -s m -l mentions -x -d'only print mentions' 63 64# Parameters for search 65complete -c toot -n'__fish_seen_subcommand_from search' -s r -l resolve -x -d'resolve non-local accounts' 66 67# Parameters for timeline 68complete -c toot -n'__fish_seen_subcommand_from timeline' -s p -l public -d'show public timeline' 69complete -c toot -n'__fish_seen_subcommand_from timeline' -s t -l tag -x -d'show hastag timeline' 70complete -c toot -n'__fish_seen_subcommand_from timeline' -s l -l local -d'show only statuses from local instance' 71complete -c toot -n'__fish_seen_subcommand_from timeline' -l list -x -d'show timeline for given list' 72complete -c toot -n'__fish_seen_subcommand_from timeline' -s c -l count -x -d'number of toots per page' 73complete -c toot -n'__fish_seen_subcommand_from timeline' -s1 -l once -d'do not prompt to continue' 74 75# Parameters for post 76complete -c toot -n'__fish_seen_subcommand_from post' -s m -l media -r -F -d'path to the media file' 77complete -c toot -n'__fish_seen_subcommand_from post' -s v -l visibility -x -d'post visibility' -a'public unlisted private direct' 78complete -c toot -n'__fish_seen_subcommand_from post' -s s -l sensitive -d'mark as NSFW' 79complete -c toot -n'__fish_seen_subcommand_from post' -s p -l spoiler-text -x -d'warning text before content' 80complete -c toot -n'__fish_seen_subcommand_from post' -s r -l reply-to -x -d'ID of the status to reply to' 81complete -c toot -n'__fish_seen_subcommand_from post' -s l -l language -x -d'language code of the toot' 82complete -c toot -n'__fish_seen_subcommand_from post' -s e -l editor -x -d'editor to compose toot' 83complete -c toot -n'__fish_seen_subcommand_from post' -l scheduled-at -x -d'datetime at which to schedule' 84complete -c toot -n'__fish_seen_subcommand_from post' -s t -l content-type -x -d'MIME type' 85 86# Parameters for upload 87complete -c toot -n'__fish_seen_subcommand_from upload' -F