Ed Page
871005724d
Merge pull request #5583 from shannmu/hidden_flags_and_aliases
...
feat(clap_complete): Support hiding long flags and their long aliases
2024-07-19 11:18:22 -05:00
shannmu
d1e0f6073c
feat(clap_complete): Support hiding long flags and their long aliases
2024-07-19 22:49:35 +08:00
shannmu
903b73bd1c
test(clap_complete): Add test cases for hiding long flags and their long aliases
2024-07-19 22:49:35 +08:00
Ed Page
7f903005b8
Merge pull request #5586 from shannmu/glue_documentation
...
docs: Add document comments how to source dynamic completions
2024-07-19 09:29:32 -05:00
shannmu
43e17f2c2b
docs: Add document comments how to source dynamic completions
2024-07-19 22:04:12 +08:00
shannmu
67e31af334
refactor(clap_complete): Add CompletionCandidate
to replace (OsString, Option<StyledStr>)
2024-07-19 18:29:16 +08:00
shannmu
697b88e28f
feat(clap_complete): Add elvish support for native completion
2024-07-18 13:44:27 +08:00
Ed Page
4a8d6806d9
Merge pull request #5549 from shannmu/hidden_aliases
...
feat(clap_complete): Add support for visible subcommand aliases
2024-07-17 16:20:17 -05:00
shannmu
cef9393c5d
feat(clap_complete): Add zsh support for native completion
2024-07-17 23:29:48 +08:00
shanmu
152b2e8a55
feat(clap_complete): Add support for visible subcommand aliases
2024-07-16 16:26:52 +08:00
shanmu
c41d41cbdc
test(clap_complete): Add test case for visible subcommand aliases
2024-07-16 16:26:02 +08:00
Ed Page
44189f3388
chore: Release
2024-07-10 20:34:37 -05:00
Ed Page
f5e7b7a16a
docs: Update changelog
2024-07-10 20:34:29 -05:00
Lzu Tao
6243d65463
fix: Only generate stubs if has subcommands
2024-07-11 06:01:42 +07:00
Lzu Tao
76b9c46241
style: Prefer matching with enum name
2024-07-09 07:51:21 +07:00
Lzu Tao
0462be61cc
doc: Explain why we fallback to the old behavior
2024-07-09 07:40:11 +07:00
Lzu Tao
eba26a9376
chore: Explain why -lt 3 levels of subcommands
2024-07-09 06:56:31 +07:00
Lzu Tao
1dd1056cd7
fix: Check for real optional arguments
2024-07-07 07:27:47 +07:00
Lzu Tao
e276fc420b
fix: Fix conditions to generate helpers
...
Both should be met.
2024-07-07 00:26:53 +07:00
Lzu Tao
6c706d534b
chore: Use get_action to filter out help/version flags
2024-07-07 00:16:48 +07:00
Lzu Tao
2167fee212
fix(fish): Don't handle level 3 nested subcommand
...
Nested subcommand more than 3 levels is not practical in public.
Take rustup for example, `rustup toolchain install <version>`,
there is only 3 levels of nested subcommands. But there is also
the case of `rustup help toolchain install`, or `rustup toolchain help install`.
2024-07-06 07:58:43 +07:00
Lzu Tao
a6ac45f566
feat(fish): Support nested subcommand completion
2024-07-06 07:27:56 +07:00
Lzu Tao
1c5a625ad0
fix: Fix wrong cfg(linux)
2024-07-05 15:35:01 -05:00
Lzu Tao
2d2d1f4987
chore: Bump completest
2024-07-05 15:35:01 -05:00
Lzu Tao
7c00ad2e3e
test(comlete): Show all fish completions
2024-07-05 15:34:42 -05:00
Ed Page
3689a4c867
test(complete): Fix snapshots
2024-07-05 15:02:08 -05:00
Ed Page
469d847d35
chore: Release
2024-06-28 12:44:19 -04:00
Ed Page
e323b912a6
docs: Update changelog
2024-06-28 12:43:51 -04:00
Lzu Tao
5ee1a2570e
fix(fish): Don't ignore files if has positional args
2024-06-28 10:20:09 +07:00
Lzu Tao
1e3681bfbc
refactor: Pass list to __fish_seen_subcommand_from
2024-06-27 07:22:04 +07:00
Lzu Tao
b1a0508cf9
refactor: Rewrite iterator for followup changes
2024-06-27 07:21:18 +07:00
Ed Page
5cc44bb91e
Merge pull request #5548 from tesuji/fish-escape-tab
...
style: fish: escaping tab as \t for more readibility
2024-06-26 12:27:13 -05:00
Ed Page
0724b7ba2b
chore: Remove tarpaulin support
2024-06-26 09:03:34 -04:00
Lzu Tao
b16f987ad7
style: Escaping tab as \t for more readability for fish
2024-06-25 08:42:49 +07: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