Files
aqi/internal/cli/cli_version.go
2025-05-26 10:47:52 +08:00

19 lines
266 B
Go

package cli
import (
"fmt"
"github.com/spf13/cobra"
)
var verCmd = &cobra.Command{
Use: "version",
Short: "Version of this CLI",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Version: 1.0")
},
}
func init() {
rootCmd.AddCommand(verCmd)
}