diff options
author | MaurĂcio Antunes <mauricio.abreua@gmail.com> | 2022-10-28 21:06:06 -0300 |
---|---|---|
committer | MaurĂcio Antunes <mauricio.abreua@gmail.com> | 2022-10-28 21:06:06 -0300 |
commit | 54319509212db5836edf9e3a1072921ce7c80dbf (patch) | |
tree | fe5d206f99663162df6b950405f1e238e4f3e7e2 /src/cmd/root.go | |
parent | b8faca67ea1a905b48b4a82729987a3965f24013 (diff) |
feat: first exercise running
Diffstat (limited to 'src/cmd/root.go')
-rw-r--r-- | src/cmd/root.go | 23 |
1 files changed, 23 insertions, 0 deletions
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) + } +} |