Skip to content

Commit

Permalink
add short commands
Browse files Browse the repository at this point in the history
  • Loading branch information
3ximus committed Feb 18, 2024
1 parent 564d40b commit b271c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions cmd/pr/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b271c68

Please sign in to comment.