Ed Page
0724b7ba2b
chore: Remove tarpaulin support
2024-06-26 09:03:34 -04:00
Ed Page
9c1153d6b4
chore: Release
2024-06-19 16:03:52 -05:00
Ed Page
b3effeae10
style: Make clippy happy
2024-06-13 12:45:33 -05:00
Ed Page
2f645d3e81
chore: Release
2024-06-07 16:13:55 -05:00
Ed Page
6e1e0368f9
docs: Update changelog
2024-06-07 16:12:56 -05:00
Ben Rogers
8e3c273b61
fix(zsh): Separate options from _arguments options
2024-06-07 15:20:04 -04:00
Ed Page
ff3713d770
chore: Release
2024-06-06 16:41:05 -05:00
Ed Page
3572ab8fa3
chore(complete): Require latest clap
2024-06-06 16:37:19 -05:00
Ed Page
d87dee6d48
Merge pull request #5476 from pzmarzly/issue-4265
...
feat(complete): generate completions for visible aliases
2024-06-06 16:33:01 -05:00
Ed Page
f087c39884
chore: Release
2024-06-06 15:14:24 -05:00
Ed Page
5e3386bb40
docs: Link to repo, not webpage inside repo
2024-06-04 15:36:17 -05:00
Ed Page
75e2199415
chore: Upgrade snapbox
2024-05-24 10:13:50 -05:00
Pawel Zmarzly
5000d58f38
feat(complete): Add autocomplete for visible_alias
...
Let's generate autocompletions for aliased subcommands.
$ source before.zsh
$ clap-test [TAB] <- gives me "foo bar --"
$ clap-test foo [TAB] <- gives me "--my-flag"
$ clap-test bar [TAB] <- no reaction
$ source after.zsh
$ clap-test [TAB] <- gives me "foo bar --"
$ clap-test foo [TAB] <- gives me "--my-flag"
$ clap-test bar [TAB] <- gives me "--my-flag"
2024-05-17 15:17:44 +01:00
Pawel Zmarzly
be15bd5d96
fix(complete): Fix zsh.rs subcommand deduplication
...
Fixing the iteration over all_subcommands in zsh.rs. We deduplicate
values on (sc_name, bin_name) keys, but then only iterate on bin_name.
This doesn't cause problems now, since all bin names seem to be unique.
However, without fixing this, the next commit would have started
generating duplicated functions with same names.
For example, with an #[long = "foo", visible_alias = "bar"] subcommand,
we'll end up with 2 pairs: [("foo", "foo"), ("bar", "foo")]. Before this
commit, we would have ended up generating _my-app__foo_commands()
functions. These functions should have identical content, so it is not
an error, just an inefficiency that we can fix.
2024-05-17 15:16:43 +01:00
Ed Page
800d7cb8ad
chore: Update from template
2024-05-14 12:27:02 -05:00
renovate[bot]
24651fcfef
chore(deps): update compatible (dev) ( #5477 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-01 01:04:57 +00:00
Ed Page
3092aa4a0d
chore: Release
2024-04-09 12:08:43 -05:00
Ed Page
dc333288ec
docs: Update changelog
2024-04-09 12:08:33 -05:00
sudotac
cd82f8cc8e
fix(complete): Avoid use of -v in bash completion
...
Because -v is not supported below bash 5.0.
2024-04-07 23:19:50 +09:00
renovate[bot]
9d14f394ba
chore(deps): update compatible (dev) ( #5438 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 00:30:25 +00:00
Pi-Cla
3b35dba160
docs: Add mention of nushell to clap_complete README
2024-03-22 11:43:50 -06:00
renovate[bot]
a2aa644368
chore(deps): update compatible (dev) ( #5381 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-01 00:16:52 +00:00
Ed Page
0c01b5558d
chore: Release
2024-02-16 16:33:14 -06:00
Ed Page
08e0b5bde4
docs: Update changelog
2024-02-16 16:32:57 -06:00
Alexis (Poliorcetics) Bourget
e782775229
fix(complete): Handle newlines in command/arg descriptions
...
Found while trying to add Nushell completions to
[`jj`](https://github.com/martinvonz/jj ).
2024-02-16 16:17:22 -06:00
Ed Page
fba7c8597b
test(complete): Show newline issue
2024-02-16 16:16:36 -06:00
Ed Page
5f9cecb6bd
chore: Update snapbox/trycmd
2024-02-14 16:44:57 -06:00
Ed Page
a751c5fe65
chore: Release
2024-02-08 10:34:06 -06:00
Ed Page
9ec6c942b8
chore: Release
2024-02-08 10:33:13 -06:00
Ed Page
0735119775
docs: Update changelog
2024-02-08 10:32:13 -06:00
Ed Page
ea77b98da3
test(complete): Make it order independent
2024-02-08 06:19:06 -06:00
Ed Page
708afa33ef
chore: Release
2024-02-02 10:12:09 -06:00
Ed Page
ec74349838
docs: Update changelog
2024-02-02 10:12:02 -06:00
sudotac
1edffb8576
fix(complete): Prevent filenames splitting
...
Fix #5313
2024-02-02 23:31:03 +09:00
sudotac
fe16f24ed8
test(complete): Verify filename splitting
2024-02-02 23:31:03 +09:00
renovate[bot]
4788918e01
chore(deps): update compatible (dev) ( #5333 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-01 01:26:55 +00:00
Ed Page
bd9583059b
chore: Release
2024-01-22 09:46:21 -06:00
Ed Page
35a96b0824
docs: Update changelog
2024-01-22 09:46:07 -06:00
Ed Page
646134a9a9
Merge pull request #5240 from sudotac/improve-bash-completion-with-compopt
...
Improve bash completion with compopt
2024-01-22 09:44:11 -06:00
sudotac
13a79804c9
fix(complete): Suppress a useless space completion
2024-01-20 21:29:51 +09:00
sudotac
e25b1abddf
feat(complete): Add DirPath support in bash
2024-01-20 21:29:50 +09:00
sudotac
3a222def22
fix(complete): Fix path completion in bash
...
Fix #5239
2024-01-20 21:29:06 +09:00
sudotac
62a5ace9f1
test(complete): Verify some variants of ValueHint
2024-01-20 21:28:52 +09:00
Ed Page
6a2b3bf4fa
chore: Release
2024-01-19 10:47:00 -06:00
Ed Page
069c7a6245
docs: Update changelog
2024-01-19 10:46:46 -06:00
Sebastian Holmin
ba378e635c
fix(complete): Use bin_name
for subcommands
...
Bash completions for subcommands used package
name, which broke completions when the `bin_name`
was different.
Update the `custom_bin_name` test to reflect the
correct behavior.
2024-01-19 10:27:36 +01:00
Sebastian Holmin
6411995641
test(complete): Add custom bin name test
2024-01-19 10:26:26 +01:00
Ed Page
c742b8eb0c
chore(complete): Update completest-pty
2024-01-15 14:42:42 -06:00
Ed Page
f524d84c1d
chore: Release
2024-01-15 13:09:45 -06:00
Ed Page
944fb81cf5
docs: Update changelog
2024-01-15 13:09:24 -06:00