add command aliasses
This commit is contained in:
parent
f5325c8a55
commit
80e0d97d7c
3 changed files with 9 additions and 4 deletions
|
@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- Added `list` alias to `queue show`
|
||||
- Added `delete` alias to `queue remove`
|
||||
|
||||
## [v0.2.1] - 2023-06-11
|
||||
### Changed
|
||||
|
|
|
@ -17,6 +17,7 @@ var queueremoveCmd = &cobra.Command{
|
|||
Run: app.RunQueueRemove,
|
||||
Args: cobra.ExactArgs(1),
|
||||
Example: "humble-bot queue remove 25",
|
||||
Aliases: []string{"delete"},
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -12,10 +12,11 @@ import (
|
|||
|
||||
// queueshowCmd represents the queue command
|
||||
var queueshowCmd = &cobra.Command{
|
||||
Use: "show",
|
||||
Short: "Show items in queue",
|
||||
Run: app.RunQueueShow,
|
||||
Args: cobra.ExactArgs(0),
|
||||
Use: "show",
|
||||
Short: "Show items in queue",
|
||||
Run: app.RunQueueShow,
|
||||
Args: cobra.ExactArgs(0),
|
||||
Aliases: []string{"list"},
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Reference in a new issue