Skip to content

Commit

Permalink
refac: [MER-2427] Add pr.go. (#172)
Browse files Browse the repository at this point in the history
Working hard to find every way to break things.
  • Loading branch information
ErichKramer authored Jun 7, 2023
1 parent acc644f commit f987c51
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
17 changes: 17 additions & 0 deletions cmd/av/pr.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package main

import (
"github.com/spf13/cobra"
)

var prCmd = &cobra.Command{
Use: "pr",
Short: "manage pull requests",
}

func init() {
prCmd.AddCommand(
prCreateCmd,

)
}
5 changes: 1 addition & 4 deletions cmd/av/pr_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ import (
"github.com/spf13/cobra"
)

var prCmd = &cobra.Command{
Use: "pr",
}

var prCreateFlags struct {
Draft bool
Force bool
Expand All @@ -24,6 +20,7 @@ var prCreateFlags struct {
Body string
Edit bool
}

var prCreateCmd = &cobra.Command{
Use: "create",
Short: "create a pull request for the current branch",
Expand Down

0 comments on commit f987c51

Please sign in to comment.