-
Notifications
You must be signed in to change notification settings - Fork 34
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 #5 from BenSchZA/feature/root-input-run
Run input from root CLI command
- Loading branch information
Showing
2 changed files
with
79 additions
and
39 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,18 +1,22 @@ | ||
name: pier | ||
version: "0.1.0" | ||
version: "0.2.0" | ||
author: Benjamin Scholtz <[email protected]> | ||
about: A simple Docker script management CLI | ||
args: | ||
- INPUT: | ||
help: alias/name for script to run | ||
required: false | ||
index: 1 | ||
- config: | ||
short: c | ||
long: config | ||
value_name: FILE | ||
help: sets a custom config file (default "$HOME/.pier") | ||
takes_value: true | ||
- accept: | ||
short: y | ||
long: accept | ||
help: answer yes to all questions | ||
# - accept: | ||
# short: y | ||
# long: accept | ||
# help: answer yes to all questions | ||
subcommands: | ||
- add: | ||
about: Add a script using alias | ||
|
@@ -27,12 +31,22 @@ subcommands: | |
required: true | ||
help: alias/name for script | ||
takes_value: true | ||
- tags: | ||
short: t | ||
long: tags | ||
help: tags for script | ||
takes_value: true | ||
multiple: true | ||
# - description: | ||
# short: d | ||
# long: description | ||
# help: description for script | ||
# takes_value: true | ||
# - reference: | ||
# short: r | ||
# long: reference | ||
# help: reference for script | ||
# takes_value: true | ||
# - tags: | ||
# short: t | ||
# long: tags | ||
# help: tags for script | ||
# takes_value: true | ||
# multiple: true | ||
- remove: | ||
about: Remove a script using alias | ||
args: | ||
|
@@ -52,11 +66,11 @@ subcommands: | |
long: arg | ||
help: pass argument to script | ||
takes_value: true | ||
- dir: | ||
short: d | ||
long: dir | ||
help: run script in directory | ||
takes_value: true | ||
# - dir: | ||
# short: d | ||
# long: dir | ||
# help: run script in directory | ||
# takes_value: true | ||
- list: | ||
about: List all scripts with optional filters | ||
args: | ||
|
@@ -65,9 +79,9 @@ subcommands: | |
long: alias | ||
help: alias/name for script | ||
takes_value: true | ||
- tags: | ||
short: t | ||
long: tags | ||
help: tags for script | ||
takes_value: true | ||
multiple: true | ||
# - tags: | ||
# short: t | ||
# long: tags | ||
# help: tags for script | ||
# takes_value: true | ||
# multiple: 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