Skip to content

Commit

Permalink
add ls alias for existing list commands
Browse files Browse the repository at this point in the history
  • Loading branch information
craftamap committed Jun 17, 2021
1 parent 34f8487 commit 5f87076
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion cmd/commands/downloads/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ var (

func Add(downloadsCmd *cobra.Command, globalOpts *options.GlobalOptions) {
listCmd := &cobra.Command{
Use: "list",
Use: "list",
Aliases: []string{"ls"},
Annotations: map[string]string{
"RequiresClient": "true",
"RequiresRepository": "true",
Expand Down
7 changes: 4 additions & 3 deletions cmd/commands/pipelines/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ const (

func Add(pipelinesCmd *cobra.Command, globalOpts *options.GlobalOptions) {
listCmd := &cobra.Command{
Use: "list",
Short: "List pipeline executions this repository",
Long: "List pipeline executions this repository",
Use: "list",
Aliases: []string{"ls"},
Short: "List pipeline executions this repository",
Long: "List pipeline executions this repository",
Annotations: map[string]string{
"RequiresClient": "true",
"RequiresRepository": "true",
Expand Down
7 changes: 4 additions & 3 deletions cmd/commands/pr/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ var (

func Add(prCmd *cobra.Command, globalOpts *options.GlobalOptions) {
listCmd := &cobra.Command{
Use: "list",
Short: "List and filter pull requests in this repository",
Long: "List and filter pull requests in this repository",
Use: "list",
Aliases: []string{"ls"},
Short: "List and filter pull requests in this repository",
Long: "List and filter pull requests in this repository",
Annotations: map[string]string{
"RequiresClient": "true",
"RequiresRepository": "true",
Expand Down

0 comments on commit 5f87076

Please sign in to comment.