Build tag to disable daemon build
This commit is contained in:
parent
f9a34b3f9c
commit
093fabc1e7
@ -1,3 +1,5 @@
|
||||
// +build !nodaemon
|
||||
|
||||
package daemon
|
||||
|
||||
import (
|
||||
|
24
daemon/cmd_nodaemon.go
Normal file
24
daemon/cmd_nodaemon.go
Normal file
@ -0,0 +1,24 @@
|
||||
// +build nodaemon
|
||||
|
||||
package daemon
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gopkg.in/urfave/cli.v2"
|
||||
)
|
||||
|
||||
// Cmd is the `go-lotus daemon` command
|
||||
var Cmd = &cli.Command{
|
||||
Name: "daemon",
|
||||
Usage: "Start a lotus daemon process",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "api",
|
||||
Value: ":1234",
|
||||
},
|
||||
},
|
||||
Action: func(cctx *cli.Context) error {
|
||||
return errors.New("daemon support not included in this binary")
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user