mirror of
https://github.com/imjasonh/cnotes
synced 2026-07-08 09:05:17 +00:00
Refactor install output to use multi-line string template
- Replace multiple fmt.Printf/Println calls with single fmt.Printf - Use Go's multi-line string literal with backticks - Cleaner and more maintainable code structure
This commit is contained in:
parent
def9a335f2
commit
a98459ed4d
1 changed files with 16 additions and 13 deletions
|
|
@ -80,19 +80,22 @@ func runInstall(cmd *cobra.Command, args []string) error {
|
|||
return fmt.Errorf("failed to install hooks: %w", err)
|
||||
}
|
||||
|
||||
fmt.Printf("✓ cnotes installed successfully to %s settings\n", scope)
|
||||
fmt.Printf(" Binary: %s\n", executable)
|
||||
fmt.Printf(" Settings: %s\n", settingsPath)
|
||||
fmt.Printf("\nWhat cnotes does:\n")
|
||||
fmt.Println(" • Monitors git commit commands executed through Claude")
|
||||
fmt.Println(" • Automatically captures conversation context in git notes")
|
||||
fmt.Println(" • Includes user prompts and tool interactions since last commit")
|
||||
fmt.Println(" • Scans all transcript files in the project for cross-session context")
|
||||
fmt.Printf("\nGit notes configuration:\n")
|
||||
fmt.Printf(" • Notes ref: claude-conversations\n")
|
||||
fmt.Printf(" • Use 'cnotes show' to view conversation notes for commits\n")
|
||||
fmt.Printf(" • Use 'cnotes list' to see all commits with notes\n")
|
||||
fmt.Printf(" • Use 'cnotes backup/restore' to manage your notes\n")
|
||||
fmt.Printf(`✓ cnotes installed successfully to %s settings
|
||||
Binary: %s
|
||||
Settings: %s
|
||||
|
||||
What cnotes does:
|
||||
• Monitors git commit commands executed through Claude
|
||||
• Automatically captures conversation context in git notes
|
||||
• Includes user prompts and tool interactions since last commit
|
||||
• Scans all transcript files in the project for cross-session context
|
||||
|
||||
Git notes configuration:
|
||||
• Notes ref: claude-conversations
|
||||
• Use 'cnotes show' to view conversation notes for commits
|
||||
• Use 'cnotes list' to see all commits with notes
|
||||
• Use 'cnotes backup/restore' to manage your notes
|
||||
`, scope, executable, settingsPath)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue