diff --git a/cmd/getSignatures.go b/cmd/getSignatures.go index dc81d09d..0be2ccd5 100644 --- a/cmd/getSignatures.go +++ b/cmd/getSignatures.go @@ -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) +}