Commit graph

1608 commits

Author SHA1 Message Date
Kevin K
d4740a5978
chore: adds some recipies to the justfile 2016-11-11 15:33:38 -05:00
Kevin K
55e7385685
style: changes try! to ? and rustfmt run 2016-11-11 15:20:07 -05:00
Homu
087cee7404 Auto merge of #733 - kbknapp:v2.18.0, r=kbknapp
V2.18.0
2016-11-06 09:20:50 +09:00
Kevin K
475c21814e
chore: increase version 2016-11-05 19:58:30 -04:00
Kevin K
b620323299
chore: updates the contributors list 2016-11-05 19:58:19 -04:00
Kevin K
71e679b3ba
chore: adds a justfile for storing some common commands 2016-11-05 19:58:07 -04:00
Kevin K
cbe252d477
Merge branch 'master' of github.com:kbknapp/clap-rs 2016-11-05 16:09:09 -04:00
Arnavion
cff82c880e
feat(Completions): adds completion support for PowerShell.
Closes #729
2016-11-05 16:06:31 -04:00
Homu
fc22be0f04 Auto merge of #732 - Arnavion:fix-729, r=kbknapp
Completion support for PowerShell.

Fixes #729

---

Requires PS 5.0+ for the `Microsoft.PowerShell.Core\Register-ArgumentCompleter` commandlet. Earlier versions using the equivalent commandlet from TabExpansionPlusPlus may work, but I haven't tested that. PS 5.0 is available for Windows 7 and non-Windows anyway.

The resulting script can be used by pasting it into the PS profile or saving it to a file and sourcing it into the PS profile in the usual way.
2016-11-06 04:08:36 +09:00
Arnavion
5869ebbffc Completion support for PowerShell.
Fixes #729
2016-11-05 02:47:23 -07:00
Homu
a7659ce4f0 Auto merge of #730 - kbknapp:issue-725-take2, r=kbknapp
Issue 725 take2
2016-11-02 13:40:24 +09:00
Kevin K
1118cc08fa
chore: increase version 2016-11-01 23:33:53 -04:00
Kevin K
908d78eb82
tests: adds tests against issue-725 part 2 2016-11-01 23:32:26 -04:00
Kevin K
33924e8844
fix(Low Index Multiples): fixes a bug where using low index multiples was propgated to subcommands
Closes #725
2016-11-01 23:31:29 -04:00
Homu
00b8d16078 Auto merge of #728 - kbknapp:coveralls, r=kbknapp
chore: coveralls upload fix
2016-11-02 12:16:24 +09:00
Kevin K
b71329b8c8
chore: coveralls upload fix 2016-11-01 22:53:48 -04:00
Homu
5cb9c8ad65 Auto merge of #724 - kbknapp:clippy-run, r=kbknapp
Clippy run
2016-11-02 08:57:17 +09:00
Kevin K
90df9d3223
chore: moves to temp coveralls fix 2016-11-01 19:20:55 -04:00
Kevin K
61bde461e1
chore: clippy run 2016-11-01 18:42:03 -04:00
Homu
1ff9791fb4 Auto merge of #727 - kbknapp:issue-725, r=kbknapp
Issue 725
2016-11-02 07:14:52 +09:00
Kevin K
e55e82a418
chore: increase version 2016-11-01 16:28:15 -04:00
Kevin K
74360184fa
tests(Multiple Values): renames some tests to reduce redundancy 2016-11-01 16:25:54 -04:00
Kevin K
ac49e7bc04
tests: adds tests for low index positionals with multiple(true) set 2016-11-01 16:25:54 -04:00
Kevin K
1ced2a7433
feat(Positional Args): allows specifying the second to last positional argument as multiple(true)
Now one can build CLIs that support things like `mv <files>... <target>`

There are a few requirements and caveats;

 * The final positional argument (and all positional arguments prior) *must* be required
 * Only one positional argument may be `multiple(true)`
 * Only the second to last, or last positional argument may be `multiple(true)`

Closes #725
2016-11-01 16:25:54 -04:00
Kevin K
1d6f8fd7de
chore(Completion Error): changes error message to reflect not only BASH is supported 2016-11-01 16:25:47 -04:00
Homu
ccfc5ed6c3 Auto merge of #726 - matthiasbeyer:app-get-name, r=kbknapp
Add App::app_name() getter

This is a proposal... I would like to have this for [imag](https://github.com/matthiasbeyer/imag) ([this PR](https://github.com/matthiasbeyer/imag/pull/826)).

If this is not a good idea for some reason, I will rewrite my abstractions,... but this would be the easy way for me, so I propose this! 😄
2016-11-02 05:19:48 +09:00
Matthias Beyer
bc2075d088 Add App::app_name() getter 2016-11-01 20:11:26 +01:00
Homu
813489dd9b Auto merge of #720 - kbknapp:issues-714,718, r=kbknapp
Issues 714,718
2016-10-31 21:11:30 +09:00
Kevin K
518f57744a
chore: increase version 2016-10-31 00:41:14 -04:00
Kevin K
3d37001d1d
imp(Error Output): conflicting errors are now symetrical, meaning more consistent and less confusing
Prior to this commit, conflicting error messages and the suggeseted usage would depend on whether
you defined the conflict on both arguments, or just one, and the order in which you specified the
conflicting arguments at runtime.

Now they are symetrical, meaning the suggestions from the error message are consistent, and it no
longer matters if you specify the conflict in one, or both arguments.

Closes #718
2016-10-31 00:35:23 -04:00
Kevin K
44f6b1edbf
tests: updates conflict tests to new more precise output 2016-10-31 00:35:13 -04:00
Kevin K
5c70e1a01b
fix(ZSH Completions): fixes bug that caused panic on subcommands with aliases
ZSH completions now fully support subcommands with aliases. Only visible aliases will be displayed
in the completions.

Closes #714
2016-10-30 19:18:13 -04:00
Homu
174a5779ec Auto merge of #719 - Nemo157:patch-1, r=kbknapp
docs: Fix typo in example `13a_enum_values_automatic`
2016-10-31 07:24:43 +09:00
Wim
c22fbc0735 docs: Fix typo in example 13a_enum_values_automatic 2016-10-30 20:03:05 +01:00
Kevin K
6c11ccf443 fix(debug): fixes the debug feature (#716) 2016-10-29 11:10:14 -04:00
Kevin K
21fba9e6cd docs(README.md): fixes failing yaml example (#715)
Close #708
2016-10-29 10:59:41 -04:00
Homu
8190a1c9d9 Auto merge of #711 - kbknapp:v2.16.3, r=kbknapp
chore: increase version
2016-10-29 02:28:00 +09:00
Kevin K
dbe60fc779
chore: increase version 2016-10-27 22:03:46 -04:00
Homu
4f0780fbaa Auto merge of #710 - myCrates:fix/yaml-example, r=kbknapp
fix(yaml-example): inconsistent args

change yaml example to be consistent with its configuration

fix #707, #708
2016-10-28 10:55:31 +09:00
mvaude
847f719921 fix(yaml-example): inconsistent args
change yaml example to be consistent with its configuration

fix #707, #708
2016-10-27 15:12:12 +02:00
Homu
0f8764cbe8 Auto merge of #709 - Nemo157:derive_order_pr, r=kbknapp
Derive display order after propagation

Don't attempt to change the display order of flags/options until any app settings have been propagated down from a parent `App` in case `DeriveDisplayOrder` and/or `UnifiedHelpMessage` are propagated.

Adds tests that try to stress the combinations of `DeriveDisplayOrder` and `UnifiedHelpMessage` along with propagating them to subcommands and explicitly setting a display order.
2016-10-27 13:17:41 +09:00
Wim Looman
9cb6facf50 fix: Derive display order after propagation
Don't attempt to change the display order of flags/options until any app
settings have been propagated down from a parent App in case DeriveDisplayOrder
and/or UnifiedHelpMessage are propagated.

Fixes #706
2016-10-26 20:47:24 +02:00
Wim Looman
f5b577c4fe tests: Add tests related to #706
Try and stress the combinations of DeriveDisplayOrder and UnifiedHelpMessage
along with propagating them to subcommands and explicitly setting a display
order.

The new tests

  derive_order_subcommand_propagate
  unified_help_and_derive_order_subcommand_propagate
  unified_help_and_derive_order_subcommand_propagate_with_explicit_display_order

are currently failing because of bug #706.
2016-10-26 20:47:19 +02:00
Homu
01994467d5 Auto merge of #705 - kbknapp:issue-704, r=kbknapp
Issue 704
2016-10-26 00:12:13 +09:00
Kevin K
2663ba7743
chore: increase version 2016-10-25 10:37:57 -04:00
Kevin K
780b4a1828
fix(Fish Completions): fixes a bug where single quotes are not escaped
Closes #704
2016-10-25 10:34:46 -04:00
Homu
9b32a5aa26 Auto merge of #703 - kbknapp:issue-702, r=kbknapp
Issue 702
2016-10-24 23:50:19 +09:00
Kevin K
0e2ea1c88b
chore: increase version 2016-10-24 05:59:07 -04:00
Kevin K
e9efa8ed6f
chore: clippy run 2016-10-24 05:56:32 -04:00
Kevin K
b94f897daf
tests(Help Message): adds tests to guard aginst multiple values throwing off alignment 2016-10-24 05:56:21 -04:00