initialize file structure

This commit is contained in:
Daveberry committed 2026-06-07 00:45:03 +08:00
commit 2b5c0dddc4
8 files changed
+154

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(pushCmd)
}
var pushCmd = &cobra.Command{
Use: "push [destination]",
Short: "Push changes to a destination",
Args: cobra.MaximumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
dest := "origin"
if len(args) > 0 {
dest = args[0]
}
fmt.Printf("Pushing changes to: %s...\n", dest)
},
}