Codebase list golang-github-gobuffalo-packr / 9b6b9d2b-0f1c-42de-95f0-676e23a5a27d/upstream packr / cmd / version.go
9b6b9d2b-0f1c-42de-95f0-676e23a5a27d/upstream

Tree @9b6b9d2b-0f1c-42de-95f0-676e23a5a27d/upstream (Download .tar.gz)

version.go @9b6b9d2b-0f1c-42de-95f0-676e23a5a27d/upstreamraw · history · blame

package cmd

import (
	"fmt"

	"github.com/gobuffalo/packr"
	"github.com/spf13/cobra"
)

var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "prints packr version",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println(packr.Version)
	},
}

func init() {
	rootCmd.AddCommand(versionCmd)
}