Files
2026-06-03 15:49:54 -05:00

26 lines
423 B
Go

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)
}