-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from rsteube/update-example
updated example
- Loading branch information
Showing
19 changed files
with
261 additions
and
246 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Aliases | ||
|
||
Aliases of the command. | ||
|
||
```yaml | ||
aliases: [l, ls] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Description | ||
|
||
Description of the command. | ||
|
||
```yaml | ||
description: example description | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# ExclusiveFlags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Group | ||
|
||
[Group] of the command. | ||
|
||
```yaml | ||
group: core | ||
``` | ||
[Group]:https://rsteube.github.io/carapace/carapace/command/group.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Hidden | ||
|
||
Whether to hide the command during subcommand completion. | ||
|
||
```yaml | ||
hidden: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Name | ||
|
||
Name of the command. | ||
|
||
```yaml | ||
name: add | ||
``` | ||
It can also contain the one-line [usage](https://rsteube.github.io/carapace/carapace/action/usage.html) message. | ||
```yaml | ||
name: add [-F file | -D dir]... [-f format] profile | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Parsing | ||
|
||
Sets flag parsing mode. One of: | ||
|
||
- `<unset>` interspersed but allows implicit changes | ||
- `interspersed` mixed flags and positional arguments | ||
- `non-interspersed` flag parsing stopped after first positional argument | ||
- `disabled` flag parsing disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: command | ||
commands: | ||
- name: name [value] | ||
|
||
- name: description | ||
description: with description | ||
|
||
- name: aliases | ||
aliases: [a, al] | ||
|
||
- name: hidden | ||
hidden: true | ||
completion: | ||
positional: | ||
- [p1, positional1] | ||
|
||
- name: parsing | ||
commands: | ||
- name: interspersed | ||
parsing: interspersed | ||
flags: | ||
--bool: bool flag | ||
--string=: string flag | ||
completion: | ||
flag: | ||
string: [s1, s2, s3] | ||
positional: | ||
- [p1, positional1] | ||
dash: | ||
- [d1, dash1] | ||
|
||
- name: non-interspersed | ||
parsing: non-interspersed | ||
flags: | ||
--bool: bool flag | ||
--string=: string flag | ||
completion: | ||
flag: | ||
string: [s1, s2, s3] | ||
positional: | ||
- [p1, positional1] | ||
|
||
- name: disabled | ||
parsing: disabled | ||
flags: | ||
--bool: bool flag | ||
--string=: string flag | ||
completion: | ||
flag: | ||
string: [s1, s2, s3] | ||
positional: | ||
- [p1, positional1] | ||
|
||
- name: flags | ||
flags: | ||
--bool: bool flag | ||
--string=: string flag | ||
completion: | ||
flag: | ||
string: [s1, s2, s3] | ||
|
||
- name: persistentflags | ||
persistentflags: | ||
--bool: bool flag | ||
--string=: string flag | ||
completion: | ||
flag: | ||
string: [s1, s2, s3] | ||
commands: | ||
- name: subcommand | ||
|
||
- name: exclusiveflags | ||
flags: | ||
--bool: bool flag | ||
--string=: string flag | ||
exclusiveflags: | ||
- [bool, string] | ||
completion: | ||
flag: | ||
string: [s1, s2, s3] | ||
|
||
- name: run | ||
commands: | ||
- name: alias | ||
run: "[git, log]" | ||
- name: shell | ||
run: "$(git log --color=${C_FLAG_COLOR:-auto} $@)" | ||
flags: | ||
--color?: colored diff | ||
completion: | ||
flag: | ||
color: [always, auto, never] | ||
positional: | ||
- [master] |
Oops, something went wrong.