From b271c68c011f99997eceeab8a43187ba2b41aa36 Mon Sep 17 00:00:00 2001 From: eximus Date: Sat, 17 Feb 2024 21:40:52 -0500 Subject: [PATCH] add short commands --- cmd/pipeline/pipeline.go | 2 +- cmd/pr/pr.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/pipeline/pipeline.go b/cmd/pipeline/pipeline.go index fab10ce..1ecd38d 100644 --- a/cmd/pipeline/pipeline.go +++ b/cmd/pipeline/pipeline.go @@ -10,7 +10,7 @@ import ( var PipelineCmd = &cobra.Command{ Use: "pipeline", Aliases: []string{"pl"}, - Short: "Manage pipelines", + Short: "Manage pipelines [pl]", PersistentPreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlag("repo", cmd.Flags().Lookup("repo")) cobra.CheckErr(err) diff --git a/cmd/pr/pr.go b/cmd/pr/pr.go index 121f1ad..ad82361 100644 --- a/cmd/pr/pr.go +++ b/cmd/pr/pr.go @@ -8,8 +8,9 @@ import ( ) var PrCmd = &cobra.Command{ - Use: "pr", - Short: "Manage pull requests", + Use: "pull-request", + Aliases: []string{"pr"}, + Short: "Manage pull requests [pr]", PersistentPreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlag("repo", cmd.Flags().Lookup("repo")) cobra.CheckErr(err)