summaryrefslogtreecommitdiff
path: root/main.go
blob: d36a3855324751b4f7b79653ba1811a05e53da4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main

import (
	"log"
	"os"

	"github.com/urfave/cli/v2"
	"gitrepo.ru/neonxp/idecnode/cmd/api"
	"gitrepo.ru/neonxp/idecnode/cmd/fetcher"
	"gitrepo.ru/neonxp/idecnode/cmd/point"
)

func main() {
	app := &cli.App{
		Name:  "idecnode",
		Usage: "idecnode [command]",
		Commands: []*cli.Command{
			api.APICommand,
			fetcher.FetcherCommand,
			point.PointCommand,
		},
	}

	if err := app.Run(os.Args); err != nil {
		log.Fatal(err)
	}
}