mirror of
https://github.com/lightninglabs/faraday.git
synced 2026-08-20 13:28:33 +02:00
37 lines
666 B
Go
37 lines
666 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/lightninglabs/faraday"
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var (
|
|
defaultRPCPort = "8465"
|
|
defaultRPCHostPort = "localhost:" + defaultRPCPort
|
|
)
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "frcli"
|
|
app.Usage = "command line tool for faraday"
|
|
app.Version = faraday.Version()
|
|
app.Flags = []cli.Flag{
|
|
cli.StringFlag{
|
|
Name: "rpcserver",
|
|
Value: defaultRPCHostPort,
|
|
Usage: "host:port of faraday",
|
|
},
|
|
}
|
|
app.Commands = []cli.Command{
|
|
thresholdRecommendationCommand,
|
|
outlierRecommendationCommand,
|
|
revenueReportCommand,
|
|
channelInsightsCommand,
|
|
}
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
fatal(err)
|
|
}
|
|
}
|