mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 09:56:31 +02:00
22 lines
368 B
Go
22 lines
368 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/pomerium/pomerium/internal/version"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "version",
|
|
Long: `Print the cli version.`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("pomerium:", version.FullVersion())
|
|
},
|
|
}
|