1
0

salt.fish 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # salt completion for fish shell
  2. # See salt_common.fish in the same folder for the information
  3. # hack to load functions from salt_common completion
  4. complete --do-complete='salt_common --' >/dev/null
  5. # salt general options (from --help)
  6. for auth in auth eauth external-auth
  7. complete -c salt -f -s a -l $auth -d "Specify an external authentication system to use."
  8. end
  9. for batch in batch batch-size
  10. complete -c salt -f -s b -l $batch -d "Execute the salt job in batch mode, pass either the number of minions to batch at a time, or the percentage of minions to have runnin"
  11. end
  12. complete -c salt -x -l args-separator -d "Set the special argument used as a delimiter between command arguments of compound commands. This is useful when one wants to pass commas as arguments to some of the commands in a compound command."
  13. complete -c salt -f -l async -d "Run the salt command but don't wait for a reply"
  14. complete -c salt -f -s C -l compound -d "The compound target option allows for multiple target types to be evaluated, allowing for greater granularity in target matching. The compound target is space delimited, targets other than globs are preceded with an identifier matching the specific targets argument type: salt \"G@os:RedHat and webser* or E@database.*\""
  15. complete -c salt -f -s S -l ipcidr -d "Match based on Subnet (CIDR notation) or IPv4 address."
  16. complete -c salt -f -s T -l make-token -d "Generate and save an authentication token for re-use. The token is generated and made available for the period defined in the Salt Master."
  17. complete -c salt -x -l password -d "Password for external authentication"
  18. complete -c salt -f -s I -l pillar -d "Instead of using shell globs to evaluate the target use a pillar value to identify targets, the syntax for the target is the pillar key followed by a globexpression: \"role:production*\""
  19. complete -c salt -f -l show-timeout -d "Display minions that timeout without the additional output of --verbose"
  20. complete -c salt -f -l show-jid -d "Display jid without the additional output of --verbose"
  21. complete -c salt -x -l state-output -d "Override the configured state_output value for minion output. Default: full"
  22. complete -c salt -f -s s -l static -d "Return the data from minions as a group after they all return."
  23. complete -c salt -x -l subset -d "Execute the routine on a random subset of the targeted minions. The minions will be verified that they have the named function before executing"
  24. complete -c salt -f -l summary -d "Display summary information about a salt command"
  25. complete -c salt -x -l username -d "Username for external authentication"
  26. complete -c salt -f -s v -l verbose -d "Turn on command verbosity, display jid and active job queries"
  27. # salt arguments
  28. # minions
  29. complete -c salt -f -n 'not __fish_salt_extract_minion' -a '(__fish_salt_list_minion accepted)' -d 'Minion'
  30. # functions
  31. complete -c salt -f -n '__fish_salt_extract_minion; and not __fish_salt_extract_function' -a '(__fish_salt_list_function)' -d 'Function'
  32. # arguments names
  33. complete -c salt -f -n '__fish_salt_extract_function' -a '(__fish_salt_list_arg_name)' -d 'Argument'
  34. # arguments values
  35. complete -c salt -f -n '__fish_salt_extract_function' -a '(__fish_salt_list_arg_value | __fish_salt_prefix_with_arg_name)'