Ed Page
9466a552fb
docs: Update changelog
2025-01-02 08:23:23 -06:00
Ed Page
d74b793512
Merge pull request #5865 from gifnksm/nushell-completion-value-types
...
fix(nu): Set argument type based on `ValueHint`
2025-01-02 08:22:28 -06:00
gifnksm
ecbc775d3b
fix(nu): Set argument type based on ValueHint
...
- Modified `append_value_completion_and_help` to set argument type to
`path` for `ValueHint::AnyPath`, `ValueHint::FilePath`, and
`ValueHint::DirPath`, and to `string` for other `ValueHint`s.
- Updated test snapshots to reflect the changes in argument types.
2025-01-02 11:58:29 +09:00
0xadk
6f6a376265
feat(mangen): Separate options based on help_heading
2024-12-24 03:59:06 -08:00
0xadk
540a5384b4
test(mangen): Show help_heading
is ignored
2024-12-24 03:57:36 -08:00
Ed Page
6784054536
Merge pull request #5857 from epage/empty
...
test(complete() Show empty candidate behavior
2024-12-23 21:36:06 -06:00
Ed Page
cca5f32b3a
test(complete): Show empty option-value behavior
2024-12-23 19:55:09 -06:00
Ed Page
3c14c63168
test(complete): Add empty option
2024-12-23 19:52:03 -06:00
Ed Page
a1b866df1e
test(complete): Show empty subcommand behavior
2024-12-23 19:44:49 -06:00
Ed Page
8e246ef5ee
test(complete): Add empty subcommand
2024-12-23 19:44:34 -06:00
Ed Page
87e28c2fd5
test(complete): Move globals down a level
2024-12-23 19:42:55 -06:00
Ed Page
cff27dbf57
chore: Release
2024-12-17 12:06:11 -06:00
Ed Page
4ef41249f1
docs: Update changelog
2024-12-17 12:06:04 -06:00
Ed Page
ca896175c1
Merge pull request #5848 from jennings/jennings/push-xolwzyoornps
...
fix(complete): Fix PowerShell dynamic completion
2024-12-17 12:05:12 -06:00
Stephen Jennings
99b6391ee9
fix(complete): Fix PowerShell dynamic completion
...
PowerShell does not support inline syntax for assigning environment
variables, so we must instead set the value before running the completer
and restore it after it exits.
The completer will often, if not always, be surrounded by double quotes.
To avoid syntax errors, define the argument to Invoke-Expression as a
here-string so the quotes don't create a syntax error.
Updates the instructions for adding the argument completer to the
profile. Piping a native command to Invoke-Expression invokes each line
separately. Adding `Out-String` to the pipeline ensures that
Invoke-Expression receives the whole script as a single value from the
pipeline.
Fixes : #5847
2024-12-16 22:53:38 -08:00
Ed Page
ed2360f9cd
chore: Release
2024-12-16 10:47:08 -06:00
Ed Page
196a14b8c9
docs: Update changelog
2024-12-16 10:46:53 -06:00
Ed Page
cd622ab63c
Merge pull request #5846 from ribru17/alias_fn_dedup
...
fix(complete): remove duplicate bash subcmd cases caused by aliases
2024-12-16 10:46:06 -06:00
Riley Bruins
48ff72be28
fix(complete): Deduplicate bash subcmd cases
...
**Problem:** Visible alias completions were causing duplicate case
conditions when offering subcommand completions, due to the fact that
they share the same function name as the command they are aliasing.
**Solution:** Deduplicate them so as to not redefine the exact same case
statement logic.
2024-12-15 22:04:57 -08:00
Ed Page
b1b6f17f61
Merge pull request #5843 from epage/link
...
fix(derive): Update link for derive attributes
2024-12-12 12:53:43 -06:00
Ed Page
5900216569
fix(derive): Update link for derive attributes
...
Fixes #5842
2024-12-12 12:46:56 -06:00
Ed Page
fde45f9aea
chore: Release
2024-12-05 15:16:46 -06:00
Ed Page
45d5d7edcb
docs: Update changelog
2024-12-05 15:16:34 -06:00
Ed Page
4b82b97cd9
chore: Release
2024-12-05 15:15:26 -06:00
Ed Page
a982adfbbd
docs: Update changelog
2024-12-05 15:15:12 -06:00
Ed Page
e5624f0695
Merge pull request #5838 from cakebaker/support_uppercase_e_in_scientific_notation
...
fix(lex): allow `E` in scientific notation
2024-12-05 15:14:07 -06:00
Daniel Hofstetter
c8095c0b4d
fix(lex): Allow an exponent 'E'
2024-12-05 16:17:00 +01:00
Daniel Hofstetter
9ebdf8cad5
test(lex): Allow 'E' in scientific notation
2024-12-05 16:16:53 +01:00
Ed Page
5babafd8f5
chore: Release
2024-12-03 14:32:56 -06:00
Ed Page
ac6b09cfe3
docs: Update changelog
2024-12-03 14:32:34 -06:00
Ed Page
18a81c4133
Merge pull request #5836 from omertuc/reqself
...
fix(assert): Prevent arguments from requiring self
2024-12-03 14:31:51 -06:00
Omer Tuchfeld
29d9e8844f
fix(assert): Prevent arguments from requiring self
...
It's non-sensical for an argument to require itself, so it must be a
mistake, and should be prevented.
This is arguably a breaking change, but of the spacebar heating kind.
Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2024-12-03 20:02:45 +01:00
Omer Tuchfeld
52aad0ea1a
test(asserts): Add test for self requires
...
Add a test that shows that clap doesn't complain when a flag requires
itself.
This test demonstrates existing broken behavior, ideally it should
panic.
It will be fixed in the next commit.
Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2024-12-03 20:02:40 +01:00
Omer Tuchfeld
bfca193556
refactor(asserts): Tuple destructuring
...
Use tuple destructuring to make the code clearer
Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
2024-12-03 19:56:15 +01:00
renovate[bot]
b4ea2d4be9
chore(deps): Update Rust Stable to v1.83 ( #5829 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-29 16:49:04 +00:00
Ed Page
d90cab02b8
style: Make clippy happy
2024-11-29 10:16:50 -06:00
Ed Page
10c4f63463
Merge pull request #5832 from 8LWXpg/patch-1
...
docs: fix command formatting
2024-11-29 09:01:09 -06:00
Ed Page
32bc56a547
Merge pull request #5831 from futreall/master
...
docs fix spelling issues
2024-11-29 09:00:03 -06:00
8LWXpg
518fedcd64
Update lib.rs
2024-11-29 22:08:03 +08:00
futreall
6f5fffcbc4
Update CONTRIBUTING.md
2024-11-29 11:43:18 +02:00
Ed Page
acabb8185d
Merge pull request #5830 from fuho/patch-1
...
docs: Update chapter_3.rs - missing "to"
2024-11-28 17:51:15 -06:00
ondrej
c6f185c3cd
Update chapter_3.rs - missing "to"
...
Adding missing "to"
2024-11-28 22:34:17 +01:00
Ed Page
fc55ad08ca
Merge pull request #5826 from epompeii/bencher
...
Slugify `github.repository` for Bencher
2024-11-25 13:31:28 -06:00
Everett Pompeii
c94b818d55
fix: Slugify github.repository
2024-11-24 22:22:32 -05:00
Ed Page
10c29ab75d
Merge pull request #5823 from megaserg/patch-1
...
docs: Fix docs for BoolishValueParser
2024-11-18 15:03:29 -06:00
Sergey Serebryakov
eb75bea913
Remove everything after comma
2024-11-18 20:43:04 +00:00
Sergey Serebryakov
5d282c560c
Fix docs for BoolishValueParser
2024-11-18 19:16:28 +00:00
Ed Page
2920fb082c
chore: Release
2024-11-13 12:52:48 -06:00
Ed Page
8902627c2b
docs: Update changelog
2024-11-13 12:52:22 -06:00
Ed Page
79d696f925
Merge pull request #5813 from epage/ignore
...
fix(parser): Fill in defaults on ignored error
2024-11-13 12:51:34 -06:00