gt-alias-set1
Create a shortcut for a gt command
Usage
gt alias
set
<name>
<expansion>
[flags]
Overview
Create a shortcut for a gt command
Options
--clobber[=false]
Replace an existing alias of the same name
-h, --help[=false]
help for set
Options inherited from parent commands
--debug[=false]
Log the method, URL, status, and duration of each HTTP request to stderr
--host=""
Gitea instance URL, including any base path
--interactive[=false]
Allow prompts with machine output
--no-input[=false]
Disable prompts and implicit editor/browser interactions
--sudo=""
Perform API requests as this user (requires an administrator account)
--user=""
Account name on the selected instance
Examples
# gt il runs gt issue list --label bug $ gt alias set il "issue list --label bug" # $1 takes the first argument: gt review 13 runs gt pr review 13 --approve $ gt alias set review 'pr review $1 --approve' # Replace an existing alias $ gt alias set il "issue list --assignee @me" --clobber