add(cli): cli interface for push, pull and version

This commit is contained in:
2023-10-26 00:32:25 +02:00
parent 854dafde01
commit 32a389d464
14 changed files with 750 additions and 64 deletions

20
cmd/version.go Normal file
View File

@@ -0,0 +1,20 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version of gitwarrior",
Long: `All software has versions. This is gitwarrior's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("v0.1")
},
}