Commit graph

7892 commits

Author SHA1 Message Date
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
Ed Page
2a3356a535 fix: Update anstream 2024-01-11 20:33:39 -06:00
Ed Page
12b5c39d46 chore: Release 2024-01-11 10:37:53 -06:00
Ed Page
1c5b63390b docs: Update changelog 2024-01-11 10:37:40 -06:00
Ed Page
a5d46410e0
Merge pull request #5298 from epage/conflict
fix(parser): Improve `args_conflicts_with_subcommands` experience
2024-01-11 10:36:06 -06:00
Ed Page
f529ec398c fix(parser): Ensure subcommand flags can conflict
Fixes #5297
2024-01-11 10:25:57 -06:00
Ed Page
a7e04a53e4 fix(parser): Improve subcommand conflict error 2024-01-11 10:20:19 -06:00
Ed Page
ea00ef3051 refactor(error): Allow more conflict sources 2024-01-11 10:17:35 -06:00
Ed Page
e47d8a2a66 refactor(parser): Clarify arg error 2024-01-11 09:47:00 -06:00
Ed Page
69c0509198 test(parser): Verify conflicts with precedence 2024-01-11 09:14:37 -06:00
Ed Page
e2b18f199f test(parser): Show flag behavior 2024-01-11 09:04:35 -06:00
Ed Page
06bff1c955 test(parser): Check subcommands conflict with positionals 2024-01-11 08:48:23 -06:00
Ed Page
70da3a8608 test(parser): Reduce size of test 2024-01-11 08:46:47 -06:00
Ed Page
11fd6ca269 test(parser): Clarify test name 2024-01-11 08:45:40 -06:00
Ed Page
811acc45c1 test(parser): Group subcommandc conflict tests 2024-01-11 08:45:03 -06:00
Ed Page
514f28bc92 chore: Release 2024-01-08 10:39:47 -06:00
Ed Page
1440456d3d docs: Update changelog 2024-01-08 10:39:30 -06:00
Ed Page
d6479ff7dd
Merge pull request #5290 from epage/or
fix: Allow position-sensitive flags
2024-01-08 10:31:30 -06:00
Ed Page
02f82146ad docs(cookbook): Clarify intent of fake flags 2024-01-08 10:14:37 -06:00
Ed Page
c603f34574
Merge pull request #5275 from epage/ci
chore(ci): Speed up critical path of CI
2024-01-08 10:04:46 -06:00
Ed Page
641b42b2e8 chore(ci): Speed up critical path of CI
We've decided to try using some of our funding to speed up CI.
kbknapp has experience with buildjet in the past which allows us to keep
our Actions and switch out our runners.

As we are charged for `num_cores * time`, increasing core counts could
decrease time, both helping us and keeping costs down.
I chose 8 cores (an upgrade over `ubuntu-latest`s 2 cores) as kbknapp
knew someone who benchmarked things for Rust/Python and found that a
good fit.

I only switched a subset of jobs over to buildjet to focus on jobs where
most of the time is spent on highly parallelizable operations.
Buildjet dropped our Linux test jobs from 8-9min to 2-3min.
The checks and UI-test jobs only improved by 30s-1min each, so I left
them out.
We can iterate as we go.
2024-01-08 09:58:56 -06:00
Ed Page
3eaf1af052 fix(help): Correctly show help for fake flags 2024-01-08 09:58:42 -06:00
Ed Page
d63106b9f6 docs(cookbook): Allow repeated operators 2024-01-08 09:50:40 -06:00
Ed Page
148e102ac3 fix(builder): Allow custom flag definitions
The goal is to allow getting the position of repeated flags for #5287
2024-01-08 09:49:43 -06:00
Ed Page
d53d881e33 docs(cookbook): Demonstrate bad 'find' behavior 2024-01-08 09:48:34 -06:00
Ed Page
2ab48b295c chore: Release 2024-01-04 13:11:49 -06:00
Ed Page
7a06a8cd61 docs: Update changelog 2024-01-04 13:11:17 -06:00
Ed Page
cca190efed docs: Correct link to StructOpt migration guide 2024-01-04 13:11:17 -06:00
Ed Page
61250a3613 chore(ci): Optimize CI runs 2024-01-03 08:27:59 -06:00
Ed Page
5c31f453c1
Merge pull request #5281 from Manishearth/safety-docs
Correct safety docs
2024-01-02 19:59:06 -06:00
Manish Goregaokar
ddae7e6f41 Correct safety docs 2024-01-02 17:22:34 -08:00
Ed Page
48d28aa689 chore: Release 2024-01-02 15:00:09 -06:00
Ed Page
748ce18cc2 docs: Update changelog 2024-01-02 15:00:00 -06:00
Ed Page
adbe6ec4cb
Merge pull request #5278 from henry-hsieh/fix-nosort
Skip nosort option below bash 4.4
2024-01-02 14:59:11 -06:00
Ed Page
a4c062667d chore: Make renovate commits to match 2024-01-02 09:56:35 -06:00
Henry Hsieh
2b48858ba8 fix: Skip nosort option below bash 4.4 2024-01-02 21:14:20 +08:00
Ed Page
777b744102
Merge pull request #5277 from clap-rs/renovate/actions-setup-python-5.x
chore(deps): update actions/setup-python action to v5
2024-01-01 20:33:58 -06:00
Ed Page
739d2cfa9d
Merge pull request #13 from epage/renovate/github-codeql-action-3.x
chore(deps): update github/codeql-action action to v3
2024-01-01 18:39:28 -06:00
Ed Page
c7805bc1fc
Merge pull request #12 from epage/renovate/actions-setup-python-5.x
chore(deps): update actions/setup-python action to v5
2024-01-01 18:39:21 -06:00
renovate[bot]
924b2524d0
chore(deps): update compatible (dev) (#5276)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-01 01:44:12 +00:00
renovate[bot]
b8cc5087e9
chore(deps): update actions/setup-python action to v5 2024-01-01 01:30:29 +00:00
renovate[bot]
82c9aa7bdd
chore(deps): update github/codeql-action action to v3 2024-01-01 00:59:58 +00:00
renovate[bot]
69fa0268a4
chore(deps): update actions/setup-python action to v5 2024-01-01 00:59:55 +00:00