mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
22a3988222
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.
12 lines
221 B
Go
12 lines
221 B
Go
//go:build !autopilotrpc
|
|
// +build !autopilotrpc
|
|
|
|
package commands
|
|
|
|
import "github.com/urfave/cli"
|
|
|
|
// autopilotCommands will return nil for non-autopilotrpc builds.
|
|
func autopilotCommands() []cli.Command {
|
|
return nil
|
|
}
|