Files
iptvc/cmd/version.go
T
2026-07-19 19:14:55 +08:00

28 lines
525 B
Go

/*
* Copyright (c) 2025-2026, Антон Аксенов
* This file is part of iptvc project
* MIT License: https://git.axenov.dev/IPTV/iptvc/src/branch/master/LICENSE
*/
package cmd
import (
"axenov/iptv-checker/app"
"fmt"
"github.com/spf13/cobra"
)
// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
Short: "Show version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("iptvc v" + app.VERSION)
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}