mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:46:45 +08:00
add deleting branch, editing account via editor
This commit is contained in:
1 parent
6ba9baaecd
commit
2e91a67c8f
4 files changed
+54
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package branch
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/daveberrys/guh/src/utils"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var deleteCmd = &cobra.Command{
|
||||
Use: "delete [name]",
|
||||
Short: "Delete a branch",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(c *cobra.Command, args []string) error {
|
||||
utils.RunGitSequence(false, []string{"branch", "-D", args[0]})
|
||||
fmt.Printf("Deleted branch: %s\n", args[0])
|
||||
return nil
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user