Commit graph

7678 commits

Author SHA1 Message Date
renovate[bot]
cd0ca3cc13 chore(deps): update rust crate strsim to 0.11.0 2024-02-01 01:06:03 +00:00
Ed Page
ba2d1112d1 chore: Release 2024-01-29 14:38:34 -06:00
Ed Page
9d586c8f49 docs: Update changelog 2024-01-29 14:38:19 -06:00
Ed Page
040ff6a85d
Merge pull request #5301 from Will-Shanks/master
Correct title,name and synopsis in generated man pages for subcommands
2024-01-29 14:36:38 -06:00
Will Shanks
eaf0b5eea4 fix: Apply PR comments 2024-01-28 16:33:36 -08:00
Ed Page
99470c477c
Merge pull request #5328 from eddique/master
docs(example): Added repl derive example
2024-01-23 21:37:14 -06:00
Eric R
fcab81aadb fix: Format chained method 2024-01-23 22:29:19 -05:00
Eric R
3216a64bea fix: Format to repl.rs structure, remove readme 2024-01-23 22:27:19 -05:00
Eric R
1b28cf818a fix: Remove comma from end of EchoArgs 2024-01-23 17:38:54 -05:00
Eric R
a6391ae9e3 docs(example): Added repl derive example 2024-01-23 17:35:15 -05:00
renovate[bot]
470c636bc0
chore(deps): update rust crate shlex to v1.3.0 [security] (#5323)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 22:04:01 +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
Ed Page
d18c327229 docs(faq): Remove parity link
Now that we've integrated everything into rustdoc,
its more obvious.
2024-01-22 08:48:32 -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
Ed Page
e1c3575044
Merge pull request #5256 from Serock3/master
fix(clap_complete): Use bin name instead of package name for bash completions in subcommands
2024-01-19 10:45:28 -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
ef45f2d4e7
Merge pull request #5317 from epage/author
docs: Adjust how we approach `author`
2024-01-17 09:06:10 -06:00
Ed Page
64ae186dfc docs(tutorial): Don't cover 'author' as its not shown 2024-01-17 08:06:56 -06:00
Ed Page
42849cdf5f docs(derive): Point users to 'help_template' if they want author 2024-01-17 08:00:40 -06:00
Ed Page
0134f45ff0 chore: Release 2024-01-16 14:28:07 -06:00
Ed Page
995ee03277 docs: Update changelog 2024-01-16 14:27:49 -06:00
Ed Page
2f1890907e
Merge pull request #5314 from epage/required
fix(parser): Don't duplicate requireds when usage disabled
2024-01-16 14:26:40 -06:00
Ed Page
0a635b9a20 fix(parser): Don't duplicate requireds when usage disabled
Skipping a test for now because we don't have a mixed-feature testing
strategy.

Fixes #5312
2024-01-16 14:15:48 -06:00
Ed Page
e648e086f3
Merge pull request #5311 from sourcefrog/doc-exitcode
Link to exit code info
2024-01-15 16:33:37 -06:00
Martin Pool
8c83971b8c
docs: Link to exit code info 2024-01-15 14:30:11 -08:00
Ed Page
b250c0b5f5
Merge pull request #5310 from epage/pty
chore(complete): Update completest-pty
2024-01-15 14:51:12 -06: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
Ed Page
f7a2e4623a
Merge pull request #5309 from epage/long
fix(complete): Don't provide help output for user
2024-01-15 13:08:32 -06:00
Ed Page
6fcba9821d fix(complete): Don't provide help output for user
We shouldn't be injecting help when being flattened.

Unsure why this made tests fail inconsistentkly between CI and local
2024-01-15 12:51:45 -06:00
Ed Page
a04e4550b9
Merge pull request #5307 from epage/completest
chore: Update completest
2024-01-15 12:47:54 -06:00
Ed Page
419f231dad chore: Update completest 2024-01-15 12:21:42 -06:00
Ed Page
6e862f5617 chore: Update completest 2024-01-15 12:21:41 -06:00
Ed Page
ef98da27cb chore: Release 2024-01-15 10:20:03 -06:00
Ed Page
5801ce1937 docs: Update changelog 2024-01-15 10:19:51 -06:00
Ed Page
d1d88ae45b
Merge pull request #5306 from epage/conflict
fix(parser): Don't panic with conflicts and groups
2024-01-15 10:19:04 -06:00
Ed Page
50c59f63bb fix(parser): Don't panic with conflicts and groups
With #5298, I had overlooked that `matcher.arg_ids()` includes
`ArgGroup`s.  I had assumed I could always find a present `id` among
`Arg`s and `unwrap`ed.

I skipped a test for this because the use case is a bit strange that the
long term value for the test would likely be low.
If/when we add derive support for `args_conflicts_with_subcommands`, it
will then cover this case.

Fixes #5304
2024-01-15 09:30:19 -06:00
Will Shanks
29c5690000 fix: Use "full" cmd name in man page
Print the full command, instead of just the last subcommand in the man
page. ex for `git add` print `git-add` instead of simply `add` as the
title and name. For the synopsis print the usage string, so `git add`
2024-01-12 18:47:36 -08:00
Ed Page
cbc9c9dd44 chore: Release 2024-01-11 20:52:38 -06:00
Ed Page
4718b89486 docs: Update changelog 2024-01-11 20:52:23 -06:00
Ed Page
38f805cea0
Merge pull request #5299 from epage/ansi
fix: Update anstream
2024-01-11 20:51:20 -06:00