implement everything stable, account switching feature

This commit is contained in:
Daveberry committed 2026-06-09 19:06:30 +08:00
1 parent 3e87fa0d53
commit f2508d0bc8
11 files changed
+292 -79

No files matched your search

+21
View File
@@ -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
},
}