Skip to content

Commit

Permalink
fix cligen command
Browse files Browse the repository at this point in the history
  • Loading branch information
ikehara committed Oct 21, 2019
1 parent bdbde66 commit 16d8067
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 48 deletions.
3 changes: 0 additions & 3 deletions cmd/abigen/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/abigen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Generate(outdir, pkg, name, abiJsonFilename string, mock bool) error {
func init() {
rootCmd.Flags().String("package", "contract", "package name")
rootCmd.Flags().String("name", "", "contract name")
rootCmd.Flags().String("abi", "example.json", "abi json")
rootCmd.Flags().String("abi", "", "abi json")
rootCmd.Flags().String("outdir", "", "output dir")
rootCmd.Flags().Bool("mock", false, "generate mock")
viper.AutomaticEnv()
Expand Down
4 changes: 0 additions & 4 deletions cmd/cligen/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions cmd/cligen/Makefile

This file was deleted.

32 changes: 0 additions & 32 deletions cmd/cligen/example/main.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/cligen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func Generate(outdir, pkg, name, abiJsonFilename string) error {
func init() {
rootCmd.Flags().String("package", "contract", "package name")
rootCmd.Flags().String("name", "", "contract name")
rootCmd.Flags().String("abi", "example.json", "abi json")
rootCmd.Flags().String("abi", "", "abi json")
rootCmd.Flags().String("outdir", "", "output dir")
viper.AutomaticEnv()
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
Expand Down

0 comments on commit 16d8067

Please sign in to comment.