From 54319509212db5836edf9e3a1072921ce7c80dbf Mon Sep 17 00:00:00 2001 From: MaurĂ­cio Antunes Date: Fri, 28 Oct 2022 21:06:06 -0300 Subject: feat: first exercise running --- src/cmd/root.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/cmd/root.go (limited to 'src/cmd/root.go') diff --git a/src/cmd/root.go b/src/cmd/root.go new file mode 100644 index 0000000..e0164a7 --- /dev/null +++ b/src/cmd/root.go @@ -0,0 +1,23 @@ +package cmd + +import ( + "fmt" + "os" + + "github.com/spf13/cobra" +) + +var rootCmd = &cobra.Command{ + Use: "golings", + Short: "Learn go through interactive exercises", + Run: func(cmd *cobra.Command, args []string) { + + }, +} + +func Execute() { + if err := rootCmd.Execute(); err != nil { + fmt.Println(err) + os.Exit(1) + } +} -- cgit v1.2.3-70-g09d2