From 8af20dce0ae9f0e5d0513e6a622b50d2c1c623af Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Tue, 1 Oct 2019 19:30:28 +0530 Subject: [PATCH] call getreleaseinfo --- cmd/root.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index a08bb17..557302f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -5,6 +5,7 @@ import ( "os" "github.com/rajatjindal/krew-plugin-release-go/pkg/actions" + "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -14,7 +15,10 @@ var rootCmd = &cobra.Command{ Short: "tool to make PR to krew-plugin-release", Run: func(cmd *cobra.Command, args []string) { fmt.Println("from inside golang") - fmt.Println(actions.GetPayload()) + err := actions.GetReleaseInfo() + if err != nil { + logrus.Fatal(err) + } }, }