gritpack alias [OPTIONS] <COMMAND>
Commands
- set
- Make a short name for a longer command
- list
- List your aliases
- delete
- Remove an alias
Options
gritpack alias set
Make a short name for a longer command
gritpack alias set [OPTIONS] <NAME> <EXPANSION>
Arguments
<NAME> | The short name |
<EXPANSION> | What it runs, without gritpack, quoted as one argument |
Options
Examples
$ gritpack alias set yk 'package yank'
$ gritpack alias set versions 'info $1 --jq "[.families[0].family.publications[].version] | unique"'
$ gritpack yk @frogfish/parser@1.2.0
$1, $2 … take the arguments given after the alias; any others are added at the end.
gritpack alias list
List your aliases
gritpack alias list [OPTIONS]
Options
--format <FORMAT> | Output format: human or jsonDefault: human · Values: human, json |
--json[=<FIELDS>] | Same as --format json; --json=name,version keeps only those fields |
--jq <EXPRESSION> | Print the JSON output through a jq expression, strings unquoted |
-h, --help | Print help |
gritpack alias delete
Remove an alias
gritpack alias delete [OPTIONS] <NAME>
Arguments
<NAME> | The alias to remove |
Options