aboutsummaryrefslogblamecommitdiffstats
path: root/contrib/completion/bosun.fish
blob: 7d3e72d4346ded6001c1534f84f62433eab16902 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                      
set -l commands add flush list rebuild remove
complete -c bosun -f

complete -c bosun -n "not __fish_seen_subcommand_from $commands" -a add -d "Activate the given roles"
complete -c bosun -n "not __fish_seen_subcommand_from $commands" -a flush -d "Deactivate all active roles"
complete -c bosun -n "not __fish_seen_subcommand_from $commands" -a list -d "List roles of the given type"
complete -c bosun -n "not __fish_seen_subcommand_from $commands" -a rebuild -d "Reactivate the given roles"
complete -c bosun -n "not __fish_seen_subcommand_from $commands" -a remove -d "Deactivate the given roles"

complete -c bosun -n "__fish_seen_subcommand_from add" -a "(bosun list available)"
complete -c bosun -n "__fish_seen_subcommand_from list" -a active -d "List roles that are active"
complete -c bosun -n "__fish_seen_subcommand_from list" -a all -d "List all roles"
complete -c bosun -n "__fish_seen_subcommand_from list" -a available -d "List roles that are not active on the system"

complete -c bosun -n "__fish_seen_subcommand_from rebuild" -a "(bosun list active)"
complete -c bosun -n "__fish_seen_subcommand_from remove" -a "(bosun list active)"