Commit graph

7645 commits

Author SHA1 Message Date
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
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
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
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
Henry Hsieh
2b48858ba8 fix: Skip nosort option below bash 4.4 2024-01-02 21:14:20 +08:00