stub the "daemon stop" command

This commit is contained in:
laser 2020-06-02 08:09:18 -07:00
parent 0acc2a2a63
commit 5e727819ad

View File

@ -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 {