forked from TrueCloudLab/lego
22 lines
387 B
Go
22 lines
387 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// versionCmd represents the version command
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Prints current version of lego",
|
|
Long: ``,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
// TODO: Work your own magic here
|
|
fmt.Println("lego version", version)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
RootCmd.AddCommand(versionCmd)
|
|
}
|