Commit graph

7443 commits

Author SHA1 Message Date
Dillon Shaffer
37507741c4
impl Eq<std::any::TypeId> for clap_builder::util::AnyValueId 2023-05-01 08:40:00 -06:00
Ed Page
fa57ed3123 chore: Release 2023-04-27 04:29:47 -05:00
Ed Page
9f6067f644 docs: Update changelog 2023-04-27 04:29:36 -05:00
Ed Page
9eaf8996a4
Merge pull request #4867 from epage/panic
fix(builder): Assert earlier on bad requires/conflicts
2023-04-27 18:57:19 -05:00
Ed Page
6b23edc36a
Merge pull request #4864 from mattmadeofpasta/remove-redundant-test
test(help): Remove redundant test
2023-04-27 08:49:28 -05:00
Ed Page
185729a7dc fix(builder): Assert earlier on bad requires/conflicts
Fixes #4865
2023-04-27 04:16:14 -05:00
Ed Page
e02644b9c2 fix(usage): Provide more context in panic 2023-04-27 04:12:22 -05:00
mattmadeofpasta
296fec9186
test(help): Remove redundant test 2023-04-27 09:04:35 +00:00
Ed Page
43591bc1ee chore: Release 2023-04-21 07:42:44 -05:00
Ed Page
9bda2ac8a0 docs: Update changelog 2023-04-21 07:42:33 -05:00
Ed Page
c38b8ca66d
Merge pull request #4851 from ClementTsang/update_mut_arg_docs
docs: Update mut_arg docs on help + version flags
2023-04-21 07:41:41 -05:00
Clement Tsang
89bf732353
docs: Update mut_arg docs on help + version flags 2023-04-20 22:18:27 -04:00
Ed Page
3bc32de19f
Merge pull request #4848 from changhc/fix-escape-zsh
fix(complete): Escape special characters properly for zsh
2023-04-20 15:53:02 -05:00
Huan-Cheng Chang
a379bae895 fix: Escape special characters properly for zsh
Signed-off-by: Huan-Cheng Chang <changhc84@gmail.com>
2023-04-20 21:52:36 +02:00
Ed Page
65e5a705bc
Merge pull request #4846 from epage/align
fix(help): Preserve block indent when wrapping
2023-04-19 12:48:21 -05:00
Ed Page
950a495753 fix(help): Preserve block indent when wrapping 2023-04-19 11:55:53 -05:00
Ed Page
4f0666d437 refactor(help): Clarify word splitter 2023-04-19 11:37:03 -05:00
Ed Page
71344749e7 test(help): Show indented wrap behavior 2023-04-19 11:37:03 -05:00
Ed Page
60c8c3fc31 chore: Release 2023-04-19 11:11:47 -05:00
Ed Page
e9b4c4769e docs: Update changelog 2023-04-19 11:11:34 -05:00
Ed Page
e429a9e98b
Merge pull request #4845 from epage/color
docs(help): Fill in styles docs
2023-04-19 11:10:44 -05:00
Ed Page
1ca073f212 docs(help): Fill in styles docs 2023-04-19 11:00:00 -05:00
Ed Page
6d5aaae5a9 feat(help): Allow access to current Styles 2023-04-19 10:57:00 -05:00
Ed Page
b99c50f7e9 chore: Release 2023-04-18 15:52:35 -05:00
Ed Page
3f46258b45 docs: Update changelog 2023-04-18 15:52:09 -05:00
Ed Page
b0e0c596fe
Merge pull request #4843 from epage/style
feat(help): Allow customizing terminal styling (unstable)
2023-04-18 15:51:22 -05:00
Ed Page
cbea23e3fc style: Make clippy happy 2023-04-18 15:36:02 -05:00
Ed Page
5ca3b2fc5f refactor(help): Shrink binary size 2023-04-18 15:28:20 -05:00
Ed Page
ec7040e8ba style: Make clippy happy 2023-04-18 15:22:42 -05:00
Ed Page
57974bed7b refactor(help): Future proof styling
We can add a new style and default it to what it was split out of
without a breaking change.
2023-04-18 15:22:42 -05:00
Ed Page
e10e2ad249 refactor(help): Split out separate usage style
Because this doesn't have a full section after it, people might want to
style it differently than other headers.
2023-04-18 15:22:42 -05:00
Ed Page
8fd0a93bdc refactor(help): Clarify style meaning 2023-04-18 15:22:42 -05:00
Ed Page
7cf08e63cd refactor(help): Remove unused hint 2023-04-18 15:22:42 -05:00
Ed Page
015f88b21a feat(help): Allow customizing terminal styling
For now, this is behind the `unstable-styles` feature as we verify this
is what we want for #3224
2023-04-18 15:22:42 -05:00
Ed Page
3cb90b0b22 refactor(help): Use a stylesheet 2023-04-18 15:22:42 -05:00
Ed Page
72515d14b1 refactor(help): Style in the caller
Random fixes along the way
- In one case the space after `tip:` was "colored" (won't matter until
  themeing is available)
- One error case didn't color invalid values
- Changed the args associated with invalid values to be `literal` rather
  than `warning`
- Changed the required value count to be `good`
- Changed the arg for invalid value counts to be `literal` (the actual
  count is `warning`)
2023-04-18 15:22:42 -05:00
Ed Page
9416f3a347 refactor(help): Use anstyle in the caller 2023-04-18 15:22:42 -05:00
Ed Page
ab61cd6aaf refactor(help): Push color knowledge out a layer 2023-04-18 15:22:42 -05:00
Ed Page
c8f5afe9b5 refactor: Make anstyle always available 2023-04-18 15:22:42 -05:00
Ed Page
716170eaa8 chore(gh): Ban rebase merges 2023-04-17 20:13:36 -05:00
Ed Page
7bff552156 chore(gh): Enable more settings 2023-04-17 20:12:27 -05:00
Ed Page
96297f038d chore(ci): Clarify why map_or is banned 2023-04-17 20:04:56 -05:00
Ed Page
60a8ec89e3 chore(ci): Ban for_each 2023-04-17 20:03:56 -05:00
Ed Page
bb49a658df
Merge pull request #4840 from epage/update
chore: Update from '_rust/main' template
2023-04-17 13:12:21 -05:00
Ed Page
8b4b440cb8 chore: Update from '_rust/main' template 2023-04-17 12:38:16 -05:00
Ed Page
afaba35d39 chore(ci): Use new minimumReleaseAge field 2023-04-17 09:54:21 -05:00
Ed Page
d99db2e632 style(ci): Match auto-generated style 2023-04-17 09:54:05 -05:00
Ed Page
62401b8eaf chore(ci): Lower the MSRV churn for template 2023-04-17 09:05:31 -05:00
Ed Page
2c4a7f574f chore(ci): Delay Renovate PRs until ready 2023-04-17 09:02:40 -05:00
Ed Page
563de12d25 chore(ci): Update stabilidyDays to new syntax 2023-04-17 09:01:54 -05:00