summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..d36a385
--- /dev/null
+++ b/main.go
@@ -0,0 +1,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)
+ }
+}