Skip to content

Commit

Permalink
feat: override version printer in the cli (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Staykov authored Oct 30, 2024
1 parent 8dba040 commit 434376b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/cdk-erigon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"strings"

"github.com/gateway-fm/vectorized-poseidon-gold/src/vectorizedposeidongold"
"github.com/ledgerwatch/erigon/common"
zkutils "github.com/ledgerwatch/erigon/zk/utils"
"github.com/ledgerwatch/log/v3"
"github.com/pelletier/go-toml"
"github.com/urfave/cli/v2"
Expand All @@ -35,6 +37,11 @@ func main() {
*/
}()

cli.VersionPrinter = func(cCtx *cli.Context) {
version := zkutils.GetVersion()
fmt.Println(common.MakeName("cdk-erigon", version))
}

app := erigonapp.MakeApp_zkEvm("cdk-erigon", runErigon, erigoncli.DefaultFlags)
if err := app.Run(os.Args); err != nil {
_, printErr := fmt.Fprintln(os.Stderr, err)
Expand Down

0 comments on commit 434376b

Please sign in to comment.