Codebase list golang-github-gobuffalo-packr / d40fecd8-db21-4a14-8722-81c49b4f03fb/upstream v2 / packr2 / cmd / version.go
d40fecd8-db21-4a14-8722-81c49b4f03fb/upstream

Tree @d40fecd8-db21-4a14-8722-81c49b4f03fb/upstream (Download .tar.gz)

version.go @d40fecd8-db21-4a14-8722-81c49b4f03fb/upstreamraw · history · blame

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