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
Lzu Tao
181b9e0d94
test: Ensure optional_value runs
2024-06-26 09:07:07 -04:00
Ed Page
0724b7ba2b
chore: Remove tarpaulin support
2024-06-26 09:03:34 -04:00
Ed Page
80242546e2
chore: Update deps to fix nightly
2024-06-26 09:02:40 -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
cf151fd46b
Merge pull request #5542 from casey/exit-without-flushing
...
Exit without flushing stdout and stderr
2024-06-21 12:45:51 -05:00
Ed Page
5da658c5a0
Merge pull request #5541 from rustco/master
...
chore: fix some comments
2024-06-20 06:32:42 -05:00
Casey Rodarmor
90b2661ad0
fix: Exit without flushing stdout and stderr
...
Standard out is flushed during `std::rt::cleanup()`, called by
`std::process::exit()`, and standard error is unbuffered, so doesn't
need to be flushed.
2024-06-19 21:19:32 -07:00
rustco
462c5ada4a
chore: fix some comments
...
Signed-off-by: rustco <ruster@111.com>
2024-06-20 11:40:13 +08:00
Ed Page
9c1153d6b4
chore: Release
2024-06-19 16:03:52 -05:00
Ed Page
70e84174a7
Merge pull request #5534 from chrysn-pull-requests/typo-clio
...
docs: Fix typo (cio->clio)
2024-06-14 08:40:26 -05:00
chrysn
deae5929bd
docs: Fix typo (cio->clio)
2024-06-14 13:51:45 +02:00
renovate[bot]
cd9f44f5c3
chore(deps): Update Rust Stable to v1.79 ( #5532 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-13 17:54:00 +00:00
Ed Page
b3effeae10
style: Make clippy happy
2024-06-13 12:45:33 -05:00
Ed Page
6c6839a454
chore: Release
2024-06-10 09:30:20 -05:00
Ed Page
e79ff0d42b
docs: Update changelog
2024-06-10 09:30:03 -05:00
Ed Page
be2e5ca91e
Merge pull request #5527 from epage/min
...
fix(parser): Report correct num_args on too-few
2024-06-10 09:24:15 -05:00
Ed Page
cf5c95862e
fix(parser): Report correct num_args on too-few
...
Fixes #5526
2024-06-10 09:16:53 -05:00
Ed Page
e0c9619c27
test(parser): Snapshot num_args errors
2024-06-10 09:15:48 -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
Ed Page
7e1bbf82af
Merge pull request #5523 from ben--/zsh-colon
...
fix(zsh): Separate options from _arguments options
2024-06-07 16:11:43 -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
bca9fa7a9a
chore: Update registry clap
2024-06-06 16:40:43 -05:00
Ed Page
3572ab8fa3
chore(complete): Require latest clap
2024-06-06 16:37:19 -05:00
Ed Page
122a2b3b8a
chore: Release
2024-06-06 16:36:35 -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
1870d32b9b
docs: Update changelog
2024-06-06 15:13:50 -05:00
Ed Page
ea7bfe29b7
Merge pull request #5520 from epage/exclusive
...
fix(parser): Allow exclusive to override required_*
2024-06-06 15:12:29 -05:00
Ed Page
08656d046e
fix(parser): Allow exclusive
to override required_*
...
There are other cases for `required` that aren't being handled
- Groups
- Conflicts
I'm concerned there might be weird corner cases and didn't want the
analysis for that to block fixing this.
Fixes #5507
2024-06-06 15:01:04 -05:00
Ed Page
65e90cd31f
test(parser): Show conditional requireds and exclusive
2024-06-06 14:56:40 -05:00
Ed Page
5e3386bb40
docs: Link to repo, not webpage inside repo
2024-06-04 15:36:17 -05:00
renovate[bot]
2d83106dbf
chore(deps): Update compatible (dev) ( #5514 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-01 01:34:23 +00:00
Ed Page
b91779660d
Merge pull request #5505 from epage/snapbox
...
chore: Upgrade snapbox
2024-05-24 10:26:53 -05:00
Ed Page
75e2199415
chore: Upgrade snapbox
2024-05-24 10:13:50 -05:00
Ed Page
4aefa3c1c7
docs(ref): Clean up long help descriptions
2024-05-20 16:09:03 -05:00
Ed Page
d408a823a6
Merge pull request #5491 from pgerber/doc
...
Fix documentation for Command::after_long_help()
2024-05-20 16:05:08 -05:00
Peter Gerber
659e936a02
docs: Fix documentation for Command::*long_*()
...
long_help() does not propagate the message to help(). Nor do the
others.
2024-05-20 20:47:01 +00: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
renovate[bot]
5be548dd54
chore(deps): Update Rust Stable to v1.78 ( #5493 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-14 19:13:06 +00:00
Ed Page
958c749e61
style: Make clippy happy
2024-05-14 14:06:10 -05:00
Ed Page
10a62de4cb
Merge pull request #5494 from epage/next
...
fix(help): Take long_help into account for next_line_help detection
2024-05-14 14:04:39 -05:00
Ed Page
22148eb87d
fix(help): Take long_help into account for next_line_help detection
2024-05-14 13:53:17 -05:00
Ed Page
88fb46ef3e
Merge pull request #5492 from epage/template
...
chore: Update template
2024-05-14 13:46:37 -05:00
Ed Page
800d7cb8ad
chore: Update from template
2024-05-14 12:27:02 -05:00