2020-08-17 03:51:04 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/lotus/node/config"
|
|
|
|
)
|
|
|
|
|
|
|
|
var configCmd = &cli.Command{
|
2020-08-18 16:27:28 +00:00
|
|
|
Name: "config",
|
2020-08-17 03:51:04 +00:00
|
|
|
Usage: "Output default configuration",
|
|
|
|
Action: func(cctx *cli.Context) error {
|
|
|
|
comm, err := config.ConfigComment(config.DefaultStorageMiner())
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
fmt.Println(string(comm))
|
|
|
|
return nil
|
|
|
|
},
|
|
|
|
}
|