mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:46:45 +08:00
implement everything stable, account switching feature
This commit is contained in:
1 parent
3e87fa0d53
commit
f2508d0bc8
11 files changed
+292
-79
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/daveberrys/guh/src/utils"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(commitCmd)
|
||||
}
|
||||
|
||||
var commitCmd = &cobra.Command{
|
||||
Use: "commit",
|
||||
Short: "Add current changes and commit",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
utils.RunGitSequence([]string{"commit", "-m", args[0]})
|
||||
utils.RunGitSequence([]string{"add", "."})
|
||||
return nil
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user