273 Commits

Author SHA1 Message Date
daurnimator
27967d7b52 0.7.1 release 2020-07-08 11:17:50 +10:00
daurnimator
3144e8518a rockspec: bump max lua version
We don't seem to require any changes for 5.4 support
2020-07-05 19:43:43 +10:00
Hisham Muhammad
5559abd73e Merge pull request #13 from pauloue/hidden_aliases
Add hidden command and option aliases
2020-01-14 15:34:46 -03:00
Paul Ouellette
20c14453fd Add hidden command and option aliases
Also auto-add an alias with dashes in place of underscores if an alias
has an underscore.
2019-12-15 12:29:26 -05:00
daurnimator
ad404c06ec Update docsrc/conf.py for 0.7.0 release 2019-08-15 14:15:51 +10:00
Paul Ouellette
6f28a24ed3 0.7.0 release 2019-08-14 22:20:33 -04:00
Paul Ouellette
f72c10d21a Update order of help option in docs 2019-08-14 21:43:38 -04:00
daurnimator
70bfe6c31f Fix luacheck line-too-long warning 2019-08-13 19:06:28 +10:00
daurnimator
5fa460d22f update URLs to point at luarocks fork 2019-08-13 18:56:37 +10:00
daurnimator
e6e8fa3f9c Merge remote-tracking branch 'luarocks/refs/pull/12/head' 2019-08-13 18:07:45 +10:00
Paul Ouellette
ff9c838e45 Bash completions: add support for nested commands 2019-08-12 10:13:37 -04:00
Paul Ouellette
0b081a1838 Fish completions: fully support nested commands 2019-08-12 10:13:37 -04:00
Paul Ouellette
abf07e978d Zsh completions: escape ` and $ in descriptions 2019-07-30 00:20:59 -04:00
daurnimator
52bdc8fa41 Merge remote-tracking branch 'luarocks/refs/pull/11/head' 2019-07-30 10:51:16 +10:00
Paul Ouellette
5a13f0bd06 Fix bash completion error 2019-07-29 20:35:38 -04:00
daurnimator
edfac5d89a Merge remote-tracking branch 'luarocks/refs/pull/9/head' 2019-07-27 18:40:55 +10:00
Paul Ouellette
a7d37b8065 Zsh completions: complete main command options after subcommands 2019-07-26 23:31:09 -04:00
daurnimator
846c768df9 Merge remote-tracking branch 'luarocks/refs/pull/2/head' 2019-07-26 13:11:38 +10:00
Paul Ouellette
c9f8f90a60 Completions: improve documentation 2019-07-25 11:07:39 -04:00
Paul Ouellette
f598e21376 Add documentation for completions 2019-07-24 12:47:44 -04:00
Paul Ouellette
9055452e41 Zsh completions: use #compdef <program>
This means zsh scripts can't be sourced, but they can be automatically
loaded from files which is the standard way of doing it.
2019-07-24 11:06:58 -04:00
Paul Ouellette
5f0cf3721e Completions: validate/escape some missed things 2019-07-23 17:47:07 -04:00
Paul Ouellette
a0c5ddf102 Update completion tests 2019-07-23 17:47:07 -04:00
Paul Ouellette
56e81ad786 Use the base name for completions 2019-07-23 17:47:07 -04:00
Paul Ouellette
d61b5e4f3d Replace _aliases[1] with equivalent _name 2019-07-23 01:45:49 -04:00
Paul Ouellette
146dcd4ecd Fix Parser:_is_shell_safe 2019-07-23 01:44:22 -04:00
Paul Ouellette
e6506bd408 Update completion tests 2019-07-20 09:20:57 -04:00
Paul Ouellette
8d258186c6 Fish completions improvement 2019-07-20 09:19:58 -04:00
Paul Ouellette
461f2bd2e5 Completion clean ups 2019-07-18 22:17:09 -04:00
Paul Ouellette
b265bf58d1 Zsh completions: return 1 if no completions 2019-07-18 16:26:32 -04:00
Paul Ouellette
397c1fd739 Zsh completions: complete multiple option arguments 2019-07-18 16:26:32 -04:00
Paul Ouellette
11ae9b8bdf Remove Parser._help_command 2019-07-18 16:26:32 -04:00
Paul Ouellette
d747e69a55 Zsh completions: complete positional arguments
- Completes choices is they exist, otherwise calls _files
- Supports repeated arguments
2019-07-18 16:22:02 -04:00
Paul Ouellette
b7be8cd99a Zsh completions: complete commands and command options
Supports an arbitrary number of nested subcommands.
2019-07-18 16:21:44 -04:00
Paul Ouellette
c2b2a16abe Zsh completions: Improve option completion
- support arguments with choices
- allow invoking an option multiple times
- complete files if an argument is required, but no choices are
  specified
2019-07-18 16:21:23 -04:00
Paul Ouellette
c545e49701 Prevent generation of broken completion scripts 2019-07-17 22:04:41 -04:00
Paul Ouellette
56716617a2 Add support for a completion subcommand 2019-07-17 22:04:41 -04:00
Paul Ouellette
0eac53893b Normalize IFS 2019-07-17 22:04:41 -04:00
Paul Ouellette
3a0e7a2706 Zsh completion improvements 2019-07-01 23:03:49 -04:00
Paul Ouellette
e9ee89eed5 Initial get_zsh_complete with support for options 2019-06-24 18:03:09 -04:00
Paul Ouellette
4f99e3dce0 Add trailing newline to output of complete functions 2019-06-19 14:58:55 -04:00
Paul Ouellette
188fb9d8ac Use command summaries in completion descriptions 2019-06-18 12:15:56 -04:00
Paul Ouellette
56364ff50f Use saved help command instead of index 2019-06-18 12:02:24 -04:00
Paul Ouellette
bcce0fcdcf Small improvements to bash completions 2019-06-18 11:57:03 -04:00
Paul Ouellette
ab7717898c Add tests for bash completions 2019-06-18 11:57:03 -04:00
Paul Ouellette
f18902eb4c Complete options if current word starts with dash 2019-06-18 11:57:03 -04:00
Paul Ouellette
5b733ba50a Make add_complete a Parser method 2019-06-18 11:57:03 -04:00
Paul Ouellette
03e7daf31f Bash completions: complete option argument choices 2019-06-18 11:53:58 -04:00
Paul Ouellette
9738045e18 Implement Parser:get_bash_complete 2019-06-18 11:53:58 -04:00
Paul Ouellette
46622e83de Remove support for disabling completion option
It is disabled by default
2019-06-18 11:53:58 -04:00