Files
sub-store/cmd/version.go
T

20 lines
287 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the Sub-Store version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("sub-store v1.0.0")
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}