package cmd import ( "os" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "text-shark", Short: "Fast text search, replace, and file operations powered by rg and fd", } func Execute() { if err := rootCmd.Execute(); err != nil { os.Exit(1) } } func init() { rootCmd.AddCommand(findCmd) rootCmd.AddCommand(replaceCmd) rootCmd.AddCommand(deleteLineCmd) rootCmd.AddCommand(findDeleteFilesCmd) }