mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
scaffold -config= should output to stdout
fix https://github.com/chrislusf/seaweedfs/issues/2212
This commit is contained in:
parent
092932af8f
commit
10fc478557
|
@ -1,6 +1,7 @@
|
||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"github.com/chrislusf/seaweedfs/weed/command/scaffold"
|
"github.com/chrislusf/seaweedfs/weed/command/scaffold"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -56,7 +57,7 @@ func runScaffold(cmd *Command, args []string) bool {
|
||||||
if *outputPath != "" {
|
if *outputPath != "" {
|
||||||
ioutil.WriteFile(filepath.Join(*outputPath, *config+".toml"), []byte(content), 0644)
|
ioutil.WriteFile(filepath.Join(*outputPath, *config+".toml"), []byte(content), 0644)
|
||||||
} else {
|
} else {
|
||||||
println(content)
|
fmt.Println(content)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue