Skip to content

Commit 16d8067

Browse files
committed
fix cligen command
1 parent bdbde66 commit 16d8067

File tree

6 files changed

+2
-48
lines changed

6 files changed

+2
-48
lines changed

cmd/abigen/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

cmd/abigen/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func Generate(outdir, pkg, name, abiJsonFilename string, mock bool) error {
5353
func init() {
5454
rootCmd.Flags().String("package", "contract", "package name")
5555
rootCmd.Flags().String("name", "", "contract name")
56-
rootCmd.Flags().String("abi", "example.json", "abi json")
56+
rootCmd.Flags().String("abi", "", "abi json")
5757
rootCmd.Flags().String("outdir", "", "output dir")
5858
rootCmd.Flags().Bool("mock", false, "generate mock")
5959
viper.AutomaticEnv()

cmd/cligen/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

cmd/cligen/Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

cmd/cligen/example/main.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

cmd/cligen/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func Generate(outdir, pkg, name, abiJsonFilename string) error {
5959
func init() {
6060
rootCmd.Flags().String("package", "contract", "package name")
6161
rootCmd.Flags().String("name", "", "contract name")
62-
rootCmd.Flags().String("abi", "example.json", "abi json")
62+
rootCmd.Flags().String("abi", "", "abi json")
6363
rootCmd.Flags().String("outdir", "", "output dir")
6464
viper.AutomaticEnv()
6565
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))

0 commit comments

Comments
 (0)