1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-01 06:40:45 +02:00

scaffold -config= should output to stdout

fix https://github.com/chrislusf/seaweedfs/issues/2212
This commit is contained in:
Chris Lu 2021-07-23 18:41:25 -07:00
parent 092932af8f
commit 10fc478557

View file

@ -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
}