lotus/cmd/lotus-miner/backup.go

15 lines
369 B
Go
Raw Normal View History

2020-10-01 11:58:26 +00:00
package main
import (
"github.com/urfave/cli/v2"
2020-10-01 15:14:08 +00:00
"github.com/filecoin-project/go-jsonrpc"
2020-10-01 11:58:26 +00:00
lcli "github.com/filecoin-project/lotus/cli"
2020-10-01 12:46:07 +00:00
"github.com/filecoin-project/lotus/node/repo"
2020-10-01 11:58:26 +00:00
)
2020-10-01 15:14:08 +00:00
var backupCmd = lcli.BackupCmd(FlagMinerRepo, repo.StorageMiner, func(cctx *cli.Context) (lcli.BackupAPI, jsonrpc.ClientCloser, error) {
return lcli.GetStorageMinerAPI(cctx)
})