qrz/vendor/github.com/gobuffalo/packr/v2/packr2/cmd/version.go

22 lines
333 B
Go
Raw Normal View History

package cmd
import (
"fmt"
packr "github.com/gobuffalo/packr/v2"
"github.com/spf13/cobra"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "shows packr version",
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println(packr.Version)
return nil
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}