Commit graph

17 commits

Author SHA1 Message Date
Eric Cook
10eb4fb343
zsh-completion: strip out u'' unicode __repr__ of function names
The elements in the array returned by sys.list_{,runners_}functions
recently started to be enclosed by u'' so when the completer parses
salt-call --local --out txt sys.$func, the incorrect module is
presented.
2018-09-25 12:27:47 -04:00
Nicole Thomas
2019cc8960
Merge pull request #47261 from shtrom/bash-completion-log-level-and-function-cache
Bash completion log level and function cache
2018-05-24 12:37:11 -04:00
Noah Birnel
21d2390360 specify whitespace not space on parser -L 2018-05-14 10:41:43 -07:00
Olivier Mehani
bc5c6e05ac
bash/zsh completion: Force log-level to error
Signed-off-by: Olivier Mehani <olivier.mehani@learnosity.com>
2018-04-24 11:04:35 +10:00
Eric Cook
80dc92da1f zsh-completion: improve (module|runner).function name retrieval
parsing ''salt-call -d'' was pretty errorprone and it finally broke. :D
Documention for some cron.* file.* functions isn't formatted with
leading whitespace, thus are picked up by the completer.

So now the completer parses salt-call sys.list_(runner_|)functions
2016-02-09 14:12:25 -05:00
Eric Cook
a45d869b57 zsh-completion: improved cache validation
allows a user to control how long to keep various caches without
defining their own function to override ours.

The default duration was changed from 7 days to 1 day. which seems a bit
more useful for people who don't have a static number of hosts like
myself.
2015-11-22 00:30:58 -05:00
Eric Cook
2bee0fd3d0 zsh-completion: add completion for salt-key 2015-09-19 18:35:39 -04:00
Eric Cook
6f4f971ea7 zsh-completion: add completion for salt-run 2015-09-19 18:32:23 -04:00
Eric Cook
973a2b46fd zsh-completion: remove -d, --doc, argument expectation
and small formatting changes.
2015-09-19 18:25:39 -04:00
Eric Cook
7b396785e4 mutually exclusive completion for the target options 2015-05-05 17:06:07 -04:00
Eric Cook
c3feffd229 allow caching minions, modules, or salt_dir individually. 2015-04-05 10:15:46 -04:00
Eric Cook
e384066899 skip completing minions when -N or --grain-regex is used. 2015-04-05 10:10:42 -04:00
Eric Cook
e419ce7dda fix --doc, --return and --out from 68552fd408 by delaying the expansion of salt_dir. 2015-04-05 10:07:54 -04:00
Eric Cook
68552fd408 silent errors from salt-key, cache salt_dir and skip completing minions when -G or --grain is used. 2015-03-10 18:01:38 -04:00
Eric Cook
3a453155eb shell completion: test the correct cache for minions 2015-02-27 18:31:58 -05:00
Eric Cook
4b9868b101 shell completion: allow caching of modules and minions 2015-02-27 09:41:00 -05:00
Justin Findlay
8605281629 mv zsh completion to pkg/
fix #19892
2015-02-04 13:50:35 -07:00
Renamed from scripts/completion/zsh_completion.zsh (Browse further)