1
0

salt-call.fish 2.0 KB

1234567891011121314151617181920212223
  1. # salt-call 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-call general options (from --help)
  6. complete -c salt-call -r -l file-root -d "Set this directory as the base file root."
  7. complete -c salt-call -f -s g -l grains -d "Return the information generated by the salt grains "
  8. complete -c salt-call -f -l id -d "Specify the minion id to use. If this option is omitted, the id option from the minion config will be used."
  9. complete -c salt-call -f -l local -d "Run salt-call locally, as if there was no master running."
  10. complete -c salt-call -x -l master -d "Specify the master to use. The minion must be authenticated with the master. If this option is omitted, the master options from the minion config will be used. If multi masters are set up the first listed master that responds will be used."
  11. complete -c salt-call -r -s m -l module-dirs -d "Specify an additional directory to pull modules from. Multiple directories can be provided by passing `-m /--module-dirs` multiple times."
  12. complete -c salt-call -r -l pillar-root -d "Set this directory as the base pillar root."
  13. complete -c salt-call -f -l refresh-grains-cache -d "Force a refresh of the grains cache"
  14. complete -c salt-call -f -l retcode-passthrough -d "Exit with the salt call retcode and not the salt binary retcode"
  15. complete -c salt-call -f -l skip-grains -d "Do not load grains."
  16. # functions
  17. complete -c salt-call -f -a '(__fish_salt_list_function)'
  18. # complete -c salt -f -n 'not __fish_salt_extract_function' -a '(__fish_salt_list_function)'
  19. # arguments and name values
  20. complete -c salt-call -f -n '__fish_salt_extract_function' -a '(__fish_salt_list_arg_name) (__fish_salt_list_arg_value)'