File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ func defaultConfig() *Config {
2828func configPath () string {
2929 configDir , _ := os .UserConfigDir ()
3030 full := filepath .Join (configDir , "smartcommit" , "config.yaml" )
31- fmt .Println ("🕵️ Config path being used:" , full ) // <- add this
3231 return full
3332}
3433
Original file line number Diff line number Diff line change @@ -17,22 +17,24 @@ func main() {
1717from staged changes using local or remote LLMs (e.g., Ollama, OpenAI).
1818
1919Examples:
20- smartcommit generate Generate a commit message from staged changes
21- smartcommit config edit Edit the system prompt (tone/style)
22- smartcommit config show View current configuration
20+ smartcommit generate Generate a commit message from staged changes
21+ smartcommit generate --yes Auto-commit with no prompts
22+ smartcommit config edit Edit the system prompt (tone/style)
23+ smartcommit config show View current configuration
2324
2425Run 'smartcommit [command] --help' for detailed command help.` ,
2526 }
26-
27- // Override Cobra's help output with our Long text
27+
28+ // Override Cobra's default help output with our Long field
2829 rootCmd .SetHelpFunc (func (cmd * cobra.Command , _ []string ) {
2930 fmt .Println (cmd .Long )
3031 })
3132
32- // Register subcommands
33+ // Add subcommands
3334 rootCmd .AddCommand (cmd .GenerateCmd )
3435 rootCmd .AddCommand (cmd .ConfigCmd )
3536
37+ // Execute the root command
3638 if err := rootCmd .Execute (); err != nil {
3739 fmt .Println ("❌" , err )
3840 os .Exit (1 )
You can’t perform that action at this time.
0 commit comments