stub the "daemon stop" command
This commit is contained in:
parent
0acc2a2a63
commit
5e727819ad
@ -44,6 +44,15 @@ const (
|
|||||||
preTemplateFlag = "genesis-template"
|
preTemplateFlag = "genesis-template"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var daemonStopCmd = &cli.Command{
|
||||||
|
Name: "stop",
|
||||||
|
Usage: "Stop a running lotus daemon",
|
||||||
|
Flags: []cli.Flag{},
|
||||||
|
Action: func(cctx *cli.Context) error {
|
||||||
|
panic("wombat attack")
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
// DaemonCmd is the `go-lotus daemon` command
|
// DaemonCmd is the `go-lotus daemon` command
|
||||||
var DaemonCmd = &cli.Command{
|
var DaemonCmd = &cli.Command{
|
||||||
Name: "daemon",
|
Name: "daemon",
|
||||||
@ -223,6 +232,9 @@ var DaemonCmd = &cli.Command{
|
|||||||
// TODO: properly parse api endpoint (or make it a URL)
|
// TODO: properly parse api endpoint (or make it a URL)
|
||||||
return serveRPC(api, stop, endpoint)
|
return serveRPC(api, stop, endpoint)
|
||||||
},
|
},
|
||||||
|
Subcommands: []*cli.Command{
|
||||||
|
daemonStopCmd,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func importKey(ctx context.Context, api api.FullNode, f string) error {
|
func importKey(ctx context.Context, api api.FullNode, f string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user