lotus/cmd/lotus-storage-miner/config.go
Łukasz Magiera e7d65be90a gofmt
2020-08-18 18:27:28 +02:00

23 lines
390 B
Go

package main
import (
"fmt"
"github.com/urfave/cli/v2"
"github.com/filecoin-project/lotus/node/config"
)
var configCmd = &cli.Command{
Name: "config",
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
},
}