Skip to content

Commit b94c432

Browse files
GottZclaude
andcommitted
feat(cli): ctx init — interactive setup wizard
TUI setup wizard: Config (URL + API Key), health check, version check (GitHub releases), Claude Code hooks (SubagentStart/Stop), statusline. Idempotent: re-run shows status per item, only changes what's missing. Stdlib-only (no new dependencies), cross-platform (Linux/macOS/Windows), NO_COLOR support. 15 unit tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 43ccd0e commit b94c432

4 files changed

Lines changed: 760 additions & 0 deletions

File tree

go/cmd/ctx/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func main() {
2222
Long: "ctx — The memory your LLM pretends to have. By GottZ.",
2323
}
2424

25+
cli.Version = version
2526
cli.RegisterCommands(root)
2627

2728
root.AddCommand(&cobra.Command{

go/internal/cli/commands.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func RegisterCommands(root *cobra.Command) {
4141
root.AddCommand(dreamCmd(getClient))
4242
root.AddCommand(briefCmd(getClient))
4343
root.AddCommand(persistCmd(getClient))
44+
root.AddCommand(initCmd())
4445
}
4546

4647
// ── query ────────────────────────────────────────────────────────────.

0 commit comments

Comments
 (0)