-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
46 lines (40 loc) · 940 Bytes
/
main.go
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package main
import (
"context"
"fmt"
"os"
"github.com/migalabs/streameth/cmd"
"github.com/migalabs/streameth/pkg/utils"
"github.com/sirupsen/logrus"
cli "github.com/urfave/cli/v2"
)
var (
log = logrus.WithField(
"cli", "CliName",
)
)
func main() {
fmt.Println(utils.CliName, utils.Version)
// Set the general log configurations for the entire tool
logrus.SetLevel(logrus.InfoLevel)
app := &cli.App{
Name: utils.CliName,
Usage: "Tinny client that requests and processes the Beacon Block proposals for each client.",
UsageText: "streameth [commands] [arguments...]",
Authors: []*cli.Author{
{
Name: "Tarun",
Email: "tarsuno@gmail.com",
},
},
EnableBashCompletion: true,
Commands: []*cli.Command{
cmd.AnalyzerCommand,
},
}
// generate the block analyzer
if err := app.RunContext(context.Background(), os.Args); err != nil {
log.Errorf("error: %v\n", err)
os.Exit(1)
}
}