mirror of
https://github.com/wonli/aqi.git
synced 2026-04-22 23:07:20 +08:00
20 lines
269 B
Go
20 lines
269 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: 2.0.1")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(verCmd)
|
|
}
|