package cli import ( "github.com/spf13/cobra" ) var ( // Global flags verbose bool debug bool ) // rootCmd represents the base command var rootCmd = &cobra.Command{ Use: "aevs", Short: "Sync .env files between machines", Long: `AEVS is a CLI tool for syncing .env files between machines using S3-compatible storage. It helps you keep environment variables synchronized across development environments without committing them to version control.`, } // Execute executes the root command func Execute() error { return rootCmd.Execute() } func init() { // Global flags rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose output") rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "debug output") // Subcommands rootCmd.AddCommand(configCmd) rootCmd.AddCommand(initCmd) rootCmd.AddCommand(pushCmd) rootCmd.AddCommand(pullCmd) rootCmd.AddCommand(listCmd) rootCmd.AddCommand(statusCmd) }