-
Notifications
You must be signed in to change notification settings - Fork 688
/
main.go
44 lines (39 loc) · 912 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
package main
import (
"os"
"github.com/0xPolygonHermez/zkevm-node/log"
"github.com/urfave/cli/v2"
)
const (
flagInput = "input"
)
func main() {
app := cli.NewApp()
app.Name = "zkevm-node-scripts"
app.Commands = []*cli.Command{
{
Name: "updatedeps",
Usage: "Updates external dependencies like images, test vectors or proto files",
Action: updateDeps,
Flags: []cli.Flag{},
},
{
Name: "compilesc",
Usage: "Compiles smart contracts required for testing",
Action: compileSC,
Flags: []cli.Flag{
&cli.StringFlag{
Name: flagInput,
Aliases: []string{"in"},
Usage: "Target path where the source solidity files are located. It can be a file or a directory, in which case the command will traverse all the descendants from it.",
Required: true,
},
},
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
os.Exit(1)
}
}