Skip to content

Commit

Permalink
Default value
Browse files Browse the repository at this point in the history
  • Loading branch information
nebojsa94 committed Nov 8, 2018
1 parent 981a985 commit 817432c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ var path string
var network string

func init() {
rootCmd.PersistentFlags().StringVar(&targetSchema, "target-schema", "", "Blockchain rpc schema.")
rootCmd.PersistentFlags().StringVar(&targetHost, "target-host", "", "Blockchain rpc host.")
rootCmd.PersistentFlags().StringVar(&targetPort, "target-port", "", "Blockchain rpc port.")
rootCmd.PersistentFlags().StringVar(&proxyHost, "proxy-host", "", "Proxy host.")
rootCmd.PersistentFlags().StringVar(&proxyPort, "proxy-port", "", "Proxy port.")
rootCmd.PersistentFlags().StringVar(&path, "path", "", "Path to the project build folder.")
rootCmd.PersistentFlags().StringVar(&network, "network", "", "Network id.")
proxyCmd.PersistentFlags().StringVar(&targetSchema, "target-schema", "http", "Blockchain rpc schema.")
proxyCmd.PersistentFlags().StringVar(&targetHost, "target-host", "127.0.0.1", "Blockchain rpc host.")
proxyCmd.PersistentFlags().StringVar(&targetPort, "target-port", "8545", "Blockchain rpc port.")
proxyCmd.PersistentFlags().StringVar(&proxyHost, "proxy-host", "127.0.0.1", "Proxy host.")
proxyCmd.PersistentFlags().StringVar(&proxyPort, "proxy-port", "9545", "Proxy port.")
proxyCmd.PersistentFlags().StringVar(&path, "path", "", "Path to the project build folder.")
proxyCmd.PersistentFlags().StringVar(&network, "network", "", "Network id.")

rootCmd.AddCommand(proxyCmd)
}
Expand Down

0 comments on commit 817432c

Please sign in to comment.