mirror of
https://github.com/Luzifer/vault-openvpn.git
synced 2024-12-27 07:11:20 +00:00
21 lines
350 B
Go
21 lines
350 B
Go
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// versionCmd represents the version command
|
||
|
var versionCmd = &cobra.Command{
|
||
|
Use: "version",
|
||
|
Short: "Displays the version of the utility",
|
||
|
Run: func(cmd *cobra.Command, args []string) {
|
||
|
fmt.Printf("vault-openvpn %s\n", version)
|
||
|
},
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
RootCmd.AddCommand(versionCmd)
|
||
|
}
|