pomerium/cmd/pomerium-cli/version.go
Caleb Doxsey 31fa214983
envoy: add full version (#2287)
* envoy: add full version

* remove unused import

* get envoy for lint
2021-06-14 13:58:12 -06:00

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())
},
}