| 98 | } |
| 99 | |
| 100 | func printHelp() { |
| 101 | fmt.Println(strings.TrimSpace(` |
| 102 | codehamr, a lightweight, fast coding agent for the terminal. |
| 103 | |
| 104 | Usage: |
| 105 | codehamr start interactive TUI |
| 106 | codehamr --version print version |
| 107 | |
| 108 | Slash commands (inside TUI):`)) |
| 109 | tui.PrintHelp(os.Stdout) |
| 110 | fmt.Println(strings.TrimSpace(` |
| 111 | Keys (inside TUI): |
| 112 | ctrl+l clear the screen (keeps conversation) |
| 113 | ctrl+c cancel running op · press again to quit |
| 114 | ctrl+d quit (on empty input) |
| 115 | |
| 116 | Config: |
| 117 | .codehamr/config.yaml per-project settings |
| 118 | |
| 119 | Env: |
| 120 | CODEHAMR_URL override the active profile's url at runtime |
| 121 | CODEHAMR_IDLE_TIMEOUT stream idle timeout, e.g. 90m or 1h (default 1h)`)) |
| 122 | } |
| 123 | |
| 124 | // isLocalBuild reports whether the binary came from a working tree rather |
| 125 | // than an official release. `go run` leaves version "dev"; `make install` |