Fix getSignatures should not print during command init (#70)
This commit is contained in:
parent
b38c29ce43
commit
c86120a36d
@ -26,11 +26,12 @@ var getSignaturesCmd = &cobra.Command{
|
||||
Short: "A command to see transformer method and event signatures",
|
||||
Long: `A convenience command to see method/event signatures for Maker transformers
|
||||
vulcanizedb getSignatures`,
|
||||
Run: func(cmd *cobra.Command, args []string) {},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
getSignatures()
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(getSignaturesCmd)
|
||||
func getSignatures() {
|
||||
signatures := make(map[string]string)
|
||||
signatures["BiteSignature"] = shared.BiteSignature
|
||||
signatures["DealSignature"] = shared.DealSignature
|
||||
@ -63,3 +64,7 @@ func init() {
|
||||
log.Println(name, ": ", sig)
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(getSignaturesCmd)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user