mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +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.
18 lines
365 B
Go
18 lines
365 B
Go
package commands
|
|
|
|
import "github.com/urfave/cli"
|
|
|
|
// routerCommands returns a list of routerrpc commands.
|
|
func routerCommands() []cli.Command {
|
|
return []cli.Command{
|
|
queryMissionControlCommand,
|
|
importMissionControlCommand,
|
|
queryProbCommand,
|
|
resetMissionControlCommand,
|
|
buildRouteCommand,
|
|
getCfgCommand,
|
|
setCfgCommand,
|
|
updateChanStatusCommand,
|
|
}
|
|
}
|