Commit graph

7361 commits

Author SHA1 Message Date
Ed Page
95144b7590 chore: Release 2022-11-11 12:47:41 -06:00
Ed Page
20ecae1cb3 docs: Update changelog 2022-11-11 12:47:34 -06:00
Ed Page
e6a3529e24
Merge pull request #4474 from epage/utf8
fix(parser): Don't panic on invalid UTF-8 values
2022-11-11 12:46:02 -06:00
Ed Page
e9cbed34cd fix(parser): Don't panic on invalid UTF-8 values
Fixes #4473
2022-11-11 12:26:04 -06:00
Ed Page
45d26e0013 test(parser): Show UTF8 bug 2022-11-11 12:22:30 -06:00
nibon7
0b9a11ac4b
ci: update setup-nu 2022-11-11 22:06:06 +08:00
nibon7
b5d817113a
docs: update readme 2022-11-11 22:06:06 +08:00
nibon7
8e44f4f77c
chore: release 0.1.8 2022-11-11 22:06:06 +08:00
nibon7
82e5e34438
refactor: remove struct Argument 2022-11-11 22:06:06 +08:00
nibon7
d5bfa0cb67
chore: add sub_subcommands example and nu script to generate readme dynamically 2022-11-11 22:06:06 +08:00
nibon7
ede83f161b
chore: release 0.1.7 2022-11-11 22:06:05 +08:00
nibon7
d6a37c1207
perf: reduce memory allocation 2022-11-11 22:06:05 +08:00
nibon7
a895ef3d4c
perf: reduce memory allocation 2022-11-11 22:06:05 +08:00
nibon7
26fe5dbe96
chore: release 0.1.6 2022-11-11 22:06:05 +08:00
nibon7
b35619171c
feat: align help message 2022-11-11 22:06:05 +08:00
nibon7
a0b1e2118b
chore: remove wrapped functions 2022-11-11 22:06:05 +08:00
nibon7
3c8cbfa111
chore: release 0.1.5 2022-11-11 22:06:05 +08:00
nibon7
da3bcd82e5
test: add quoting test 2022-11-11 22:06:05 +08:00
nibon7
50aefdb9b3
fix: escape quotes when string has whitespace 2022-11-11 22:06:05 +08:00
nibon7
c6fe49aba5
feat: add rest argument completion 2022-11-11 22:06:05 +08:00
nibon7
c19fc425d0
chore: release 0.1.4 2022-11-11 22:06:05 +08:00
nibon7
90555c39c5
ci: update CI to check nushell scripts 2022-11-11 22:06:05 +08:00
nibon7
fd89b0eb46
refactor: remove enum Argument 2022-11-11 22:06:05 +08:00
nibon7
8035519b62
chore: release 0.1.3 2022-11-11 22:06:05 +08:00
nibon7
17f9332d3f
docs: add badges 2022-11-11 22:06:05 +08:00
nibon7
c9fe396789
docs: add example to doc comments 2022-11-11 22:06:05 +08:00
nibon7
2b6bfeff61
feat: add nu-complete prefix to custom commands 2022-11-11 22:06:05 +08:00
nibon7
e1e682468b
chore: remove useless reference 2022-11-11 22:06:05 +08:00
nibon7
78e98e2d7c
chore: release 0.1.2 2022-11-11 22:06:05 +08:00
nibon7
889d05df8c
perf: reduce memory allocation 2022-11-11 22:06:05 +08:00
nibon7
547bd288bf
feat: add value completion 2022-11-11 22:06:05 +08:00
nibon7
07dbefef3f
chore: release 0.1.1 2022-11-11 22:06:05 +08:00
nibon7
3d9b50513b
feat: add alias completion 2022-11-11 22:06:05 +08:00
nibon7
f1bc5a554a
refactor: refactor generate_completion 2022-11-11 22:06:02 +08:00
nibon7
54a12e8178
chore: release 0.1.0 2022-11-11 21:35:21 +08:00
Ed Page
4d69e56f06
Merge pull request #4471 from epage/assert
test(assert): Verify empty positional assert exists
2022-11-09 22:22:52 -06:00
Ed Page
ec03972023 test(assert): Verify empty positional assert exists
Wondered if we had this for #4467.  Figured we should actually test it.
2022-11-09 22:10:37 -06:00
Ed Page
0d27188d87
Merge pull request #4465 from epage/help
fix(help): Clarify that 'help' command accepts multiple
2022-11-07 23:21:46 -06:00
Ed Page
9376a57d40 fix(help): Clarify that 'help' command accepts multiple
Making this plural can go either way as
- Clarify it is plural
- This is all really to simulate actually doing subcommands and you only
  do one at a time

For now, I lean towards clarifying it is plural

I also tweaked the message to be more consistent with how `--help` and
`-h` describe themselves.

Fixes #4342
2022-11-07 23:04:04 -06:00
Ed Page
6cbe5c4323 chore: Release 2022-11-07 10:47:47 -06:00
Ed Page
d2739c95cf docs: Update changelog 2022-11-07 10:47:40 -06:00
Ed Page
eaa6bfe826
Merge pull request #4463 from epage/help
fix(help): Update auto-next-line to use new padding
2022-11-07 10:46:43 -06:00
Ed Page
dfe9e73880 fix(help): Update auto-next-line to use new padding
In clap v4, we changed the padding from 4 to 2 but we didn't update our
calculation for when to switch to next-line-help as it was a magic
number (we tried to catch all of these).

When updating the tests, we also missed that a test was being wrapped
too narrowly

This was found while discussing #3300
2022-11-07 10:36:51 -06:00
Ed Page
539577dfb2 refactor(help): Remove dead code
`longest` is always the same or longer than the `sc_str.display_width`
2022-11-07 10:27:17 -06:00
Ed Page
bc457b179f chore: Release 2022-11-07 10:00:35 -06:00
Ed Page
d5c3c13ec2 docs: Update changelog 2022-11-07 10:00:22 -06:00
Ed Page
87edc19ef7
Merge pull request #4461 from epage/help
fix(derive): Allow 'long_help' to force populating from doc comment
2022-11-07 09:59:06 -06:00
Ed Page
c37ab6c205 fix(derive): Allow 'long_help' to force populating from doc comment
Fixes #4441
2022-11-07 09:41:52 -06:00
Ed Page
8751152316 test(derive): Verify long_help behavior 2022-11-07 09:36:53 -06:00
Ed Page
c1a9da9124 refactor(derive): Decouple extracting and formatting of doc comments 2022-11-07 09:17:04 -06:00