re-organize code directory structure

This commit is contained in:
Chris Lu committed 2013-02-10 03:09:26 -08:00
1 parent d3b267bac2
commit cb4e8ec16b
56 files changed
+39 -39

No files matched your search

+26
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
}