mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
21 lines
333 B
Go
21 lines
333 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/ansible-semaphore/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())
|
|
},
|
|
}
|