Browse Source

scaffold -config= should output to stdout

fix https://github.com/chrislusf/seaweedfs/issues/2212
pull/2218/head
Chris Lu 4 years ago
parent
commit
10fc478557
  1. 3
      weed/command/scaffold.go

3
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
}
Loading…
Cancel
Save