packer-cn/packer/version.go

19 lines
380 B
Go
Raw Normal View History

package packer
import "fmt"
// The version of packer.
const Version = "0.1.0.dev"
type versionCommand byte
// Implement the Command interface by simply showing the version
2013-05-02 17:03:55 -04:00
func (versionCommand) Run(env Environment, args []string) int {
env.Ui().Say(fmt.Sprintf("Packer v%v\n", Version))
return 0
}
2013-03-24 19:28:35 -04:00
func (versionCommand) Synopsis() string {
return "print Packer version"
}