From bf1ad9d6e3dad4123191cc5f27079c9f76b865eb Mon Sep 17 00:00:00 2001 From: Julian LaNeve Date: Tue, 15 Jul 2025 00:34:24 -0400 Subject: [PATCH] Remove task description references and add .claude to .gitignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove task description parameter from CLI help text - Update documentation examples to remove task descriptions - Add .claude/ to .gitignore to exclude Claude Code settings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitignore | 3 +++ CLAUDE.md | 8 ++++---- internal/cli/list.go | 2 +- internal/cli/status.go | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 5ffcb1a..b95c1d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # CWT runtime data .cwt/ +# Claude Code directory +.claude/ + # Go build artifacts ./cwt main diff --git a/CLAUDE.md b/CLAUDE.md index 9d6c5a7..311ef00 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -68,7 +68,7 @@ The SessionManager maintains an in-memory map of sessions, synchronized with: ### Available Commands ```bash -cwt new [session-name] [task-description] # Create new session +cwt new [session-name] # Create new session cwt new # Interactive session creation cwt cleanup # Remove orphaned sessions/worktrees cwt --help # Show available commands @@ -122,7 +122,7 @@ The SessionManager centralizes all session operations: ### Build and Run ```bash # Run directly from source -go run cmd/cwt/main.go new "session-name" "task description" +go run cmd/cwt/main.go new "session-name" go run cmd/cwt/main.go cleanup # Build binary @@ -135,7 +135,7 @@ go mod tidy ### Testing ```bash # Test basic functionality -go run cmd/cwt/main.go new test-session "Test description" +go run cmd/cwt/main.go new test-session tmux list-sessions | grep cwt # Verify tmux session created git worktree list # Verify git worktree created @@ -143,7 +143,7 @@ git worktree list # Verify git worktree created go run cmd/cwt/main.go cleanup # Test error scenarios -go run cmd/cwt/main.go new test-session "Duplicate test" # Should fail +go run cmd/cwt/main.go new test-session # Should fail if duplicate ``` ### Debugging Session State diff --git a/internal/cli/list.go b/internal/cli/list.go index 53bc181..89a4056 100644 --- a/internal/cli/list.go +++ b/internal/cli/list.go @@ -50,7 +50,7 @@ func runListCmd(verbose bool) error { if len(sessions) == 0 { fmt.Println("No sessions found.") - fmt.Println("\nCreate a new session with: cwt new [session-name] [task-description]") + fmt.Println("\nCreate a new session with: cwt new [session-name]") return nil } diff --git a/internal/cli/status.go b/internal/cli/status.go index 64c574d..d1a2da0 100644 --- a/internal/cli/status.go +++ b/internal/cli/status.go @@ -60,7 +60,7 @@ func showEnhancedStatus(sm *state.Manager, summary, showBranch bool) error { if len(sessions) == 0 { fmt.Println("No sessions found.") - fmt.Println("\nCreate a new session with: cwt new [session-name] [task-description]") + fmt.Println("\nCreate a new session with: cwt new [session-name]") return nil }