rename from cmd to weed for easier "go build"

This commit is contained in:
Chris Lu
2013-02-10 04:05:28 -08:00
parent 37a1a70cc3
commit d4e5a22e53
9 changed files with 0 additions and 0 deletions

26
go/weed/version.go Normal file
View File

@@ -0,0 +1,26 @@
package main
import (
"fmt"
"runtime"
)
const (
VERSION = "0.28 beta"
)
var cmdVersion = &Command{
Run: runVersion,
UsageLine: "version",
Short: "print Weed File System version",
Long: `Version prints the Weed File System version`,
}
func runVersion(cmd *Command, args []string) bool {
if len(args) != 0 {
cmd.Usage()
}
fmt.Printf("version %s %s %s\n", VERSION, runtime.GOOS, runtime.GOARCH)
return true
}