From 10fc478557558084d27d7497064dd158c28c6913 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 23 Jul 2021 18:41:25 -0700 Subject: [PATCH] scaffold -config= should output to stdout fix https://github.com/chrislusf/seaweedfs/issues/2212 --- weed/command/scaffold.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index b48cf0959..886c0ac5e 100644 --- a/weed/command/scaffold.go +++ b/weed/command/scaffold.go @@ -1,6 +1,7 @@ package command import ( + "fmt" "github.com/chrislusf/seaweedfs/weed/command/scaffold" "io/ioutil" "path/filepath" @@ -56,7 +57,7 @@ func runScaffold(cmd *Command, args []string) bool { if *outputPath != "" { ioutil.WriteFile(filepath.Join(*outputPath, *config+".toml"), []byte(content), 0644) } else { - println(content) + fmt.Println(content) } return true }