package cmd import ( "fmt" "os" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "gitlocal", Short: "Manage nested git repositories", Long: `gitlocal helps you manage nested git repositories by converting .git directories to .gitlocal, allowing parent repos to track nested project files. This is useful when you have a knowledge base or monorepo that contains multiple smaller projects, some of which use git locally.`, } func Execute() { if err := rootCmd.Execute(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } func init() { rootCmd.AddCommand(convertCmd) rootCmd.AddCommand(revertCmd) rootCmd.AddCommand(statusCmd) }