Semaphore/cli/cmd/version.go
2024-10-26 12:56:17 +00:00

21 lines
327 B
Go

package cmd
import (
"fmt"
"github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version of Semaphore",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(util.Version())
},
}