add command aliasses

This commit is contained in:
Adora Laura Kalb 2023-07-11 12:42:28 +02:00
parent f5325c8a55
commit 80e0d97d7c
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
3 changed files with 9 additions and 4 deletions

View file

@ -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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Added
- Added `list` alias to `queue show`
- Added `delete` alias to `queue remove`
## [v0.2.1] - 2023-06-11 ## [v0.2.1] - 2023-06-11
### Changed ### Changed

View file

@ -17,6 +17,7 @@ var queueremoveCmd = &cobra.Command{
Run: app.RunQueueRemove, Run: app.RunQueueRemove,
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
Example: "humble-bot queue remove 25", Example: "humble-bot queue remove 25",
Aliases: []string{"delete"},
} }
func init() { func init() {

View file

@ -16,6 +16,7 @@ var queueshowCmd = &cobra.Command{
Short: "Show items in queue", Short: "Show items in queue",
Run: app.RunQueueShow, Run: app.RunQueueShow,
Args: cobra.ExactArgs(0), Args: cobra.ExactArgs(0),
Aliases: []string{"list"},
} }
func init() { func init() {