diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-16 21:02:07 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-16 21:02:07 +0000 |
| commit | 26dc313f16a2827b0f7a4651f495f36f669cea73 (patch) | |
| tree | da8fcda11d986cf01b7cd75cee7abc6894287327 /internal/cli/status.go | |
| parent | b8381507ff61c7fb69a91490a9fd58403da8c0fa (diff) | |
feat: expose project field in API and CLI
- POST /api/tasks now reads and stores the project field from request body
- GET /api/tasks/{id} returns project in response (via Task struct json tags)
- list command: adds PROJECT column to tabwriter output
- status command: prints Project line when non-empty
- Tests: TestProject_RoundTrip (API), TestListTasks_ShowsProject, TestStatusCmd_ShowsProject (CLI)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/status.go')
| -rw-r--r-- | internal/cli/status.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/cli/status.go b/internal/cli/status.go index 16b88b0..77a30d5 100644 --- a/internal/cli/status.go +++ b/internal/cli/status.go @@ -39,6 +39,9 @@ func showStatus(id string) error { fmt.Printf("State: %s\n", t.State) fmt.Printf("Priority: %s\n", t.Priority) fmt.Printf("Model: %s\n", t.Agent.Model) + if t.Project != "" { + fmt.Printf("Project: %s\n", t.Project) + } if t.Description != "" { fmt.Printf("Description: %s\n", t.Description) } |
