From 51dbc6780bb57c52859527e15a6debe5729cdb2e Mon Sep 17 00:00:00 2001 From: Daveberry <84567826+daveberrys@users.noreply.github.com> Date: Thu, 11 Jun 2026 16:44:06 +0800 Subject: [PATCH] cleanup code --- main.go | 10 ++-------- src/cmd/root.go | 2 -- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/main.go b/main.go index 6fdf94b..f44a838 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,3 @@ package main - -import ( - "github.com/daveberrys/guh/src/cmd" -) - -func main() { - cmd.Execute() -} +import "github.com/daveberrys/guh/src/cmd" +func main() { cmd.Execute() } \ No newline at end of file diff --git a/src/cmd/root.go b/src/cmd/root.go index 741fd23..a9a1473 100644 --- a/src/cmd/root.go +++ b/src/cmd/root.go @@ -12,12 +12,10 @@ var rootCmd = &cobra.Command{ Short: "Guh is a modular CLI tool", Long: `A comprehensive CLI tool built with Go and Cobra to demonstrate multi-command structures.`, Run: func(cmd *cobra.Command, args []string) { - // This runs if no subcommand is provided fmt.Println("Welcome to guh! Use --help to see available commands.") }, } -// Execute adds all child commands to the root command and sets flags appropriately. func Execute() { if err := rootCmd.Execute(); err != nil { fmt.Fprintln(os.Stderr, err)