mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:56:45 +08:00
initialize file structure
This commit is contained in:
commit
2b5c0dddc4
8 files changed
+154
No files matched your search
@@ -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)
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user