Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# CWT runtime data
.cwt/

# Claude Code directory
.claude/

# Go build artifacts
./cwt
main
Expand Down
8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -135,15 +135,15 @@ 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

# Test cleanup functionality
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
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Loading