Fix getSignatures should not print during command init (#70)

This commit is contained in:
Elizabeth 2018-10-18 14:19:56 -05:00 committed by GitHub
parent b38c29ce43
commit c86120a36d

View File

@ -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)
}