mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
We want to export some of our CLI code to re-use in other projects. But in Golang you cannot import code from a `main` package. So we need to move the actual code into its own package and only have the `func main()` in the `main` package.
11 lines
226 B
Go
11 lines
226 B
Go
//go:build !watchtowerrpc
|
|
// +build !watchtowerrpc
|
|
|
|
package commands
|
|
|
|
import "github.com/urfave/cli"
|
|
|
|
// watchtowerCommands will return nil for non-watchtowerrpc builds.
|
|
func watchtowerCommands() []cli.Command {
|
|
return nil
|
|
}
|