aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-07-23 18:41:25 -0700
committerChris Lu <chris.lu@gmail.com>2021-07-23 18:41:25 -0700
commit10fc478557558084d27d7497064dd158c28c6913 (patch)
tree04ab9148cb25800fafa77f07000e456dd94618db
parent092932af8f9a72fd8eaecba278b8085fe34748c5 (diff)
downloadseaweedfs-10fc478557558084d27d7497064dd158c28c6913.tar.xz
seaweedfs-10fc478557558084d27d7497064dd158c28c6913.zip
scaffold -config= should output to stdout
fix https://github.com/chrislusf/seaweedfs/issues/2212
-rw-r--r--weed/command/scaffold.go3
1 files changed, 2 insertions, 1 deletions
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
}