aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/scaffold.go')
-rw-r--r--weed/command/scaffold.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index 886c0ac5e..6fcbd7efb 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -2,9 +2,10 @@ package command
import (
"fmt"
- "github.com/chrislusf/seaweedfs/weed/command/scaffold"
- "io/ioutil"
+ "os"
"path/filepath"
+
+ "github.com/chrislusf/seaweedfs/weed/command/scaffold"
)
func init() {
@@ -55,7 +56,7 @@ func runScaffold(cmd *Command, args []string) bool {
}
if *outputPath != "" {
- ioutil.WriteFile(filepath.Join(*outputPath, *config+".toml"), []byte(content), 0644)
+ os.WriteFile(filepath.Join(*outputPath, *config+".toml"), []byte(content), 0644)
} else {
fmt.Println(content)
}