add "weed scaffold" command

This commit is contained in:
Chris Lu
2018-08-19 15:36:30 -07:00
parent 95b997fb35
commit 748870b03f
4 changed files with 56 additions and 86 deletions

View File

@@ -5,7 +5,6 @@ import (
"strconv"
"time"
"github.com/chrislusf/seaweedfs/weed/filer2"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/chrislusf/seaweedfs/weed/server"
@@ -68,9 +67,9 @@ var cmdFiler = &Command{
The configuration file "filer.toml" is read from ".", "$HOME/.seaweedfs/", or "/etc/seaweedfs/", in that order.
The following are example filer.toml configuration file.
The example filer.toml configuration file can be generated by "weed scaffold filer"
` + filer2.FILER_TOML_EXAMPLE + "\n",
`,
}
func runFiler(cmd *Command, args []string) bool {