add metadatas

This commit is contained in:
2025-04-20 01:13:51 +10:00
parent 6076069338
commit 6028e7d8c2
5 changed files with 105 additions and 5 deletions

22
cmd/version.go Normal file
View File

@@ -0,0 +1,22 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
const (
Version = "dev"
)
var versionCmd = &cobra.Command{
Use: "version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("version: ", Version)
},
}
func init() {
RootCmd.AddCommand(versionCmd)
}