lncli: add lncli autopilot commands

This commit adds commands 'status', 'enable' and 'disable' for
autopilot.

The commands will only be enabled for autopilotrpc builds of lncli.
This commit is contained in:
Johan T. Halseth
2018-12-13 12:26:30 +01:00
parent fdf903b8a9
commit 80ac8c1df0
3 changed files with 126 additions and 0 deletions

View File

@@ -293,6 +293,9 @@ func main() {
forwardingHistoryCommand,
}
// Add any extra autopilot commands determined by build flags.
app.Commands = append(app.Commands, autopilotCommands()...)
if err := app.Run(os.Args); err != nil {
fatal(err)
}