Skip to content

Commit b3eaa3b

Browse files
committed
fix: remove debug print statement
1 parent 5c0924d commit b3eaa3b

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

config/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func defaultConfig() *Config {
2828
func 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

main.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,24 @@ func main() {
1717
from staged changes using local or remote LLMs (e.g., Ollama, OpenAI).
1818
1919
Examples:
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
2425
Run '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)

smartcommit

1.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)