feat(cli): add ao project ls/get/rm (#90)#91
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds missing ao project read/delete commands to the Go CLI, aligning it with the daemon’s existing projects API and improving the shared CLI↔daemon client to support additional HTTP verbs.
Changes:
- Added
ao project ls|list,ao project get <id>, andao project rm <id>with human-readable output and--jsonsupport. - Extended the CLI daemon client with
getJSONanddeleteJSONhelpers via a generalizeddoJSONrequest path. - Added unit tests covering project list/get/remove behaviors (table output, sorting, degraded display, confirmation flow, and error envelopes).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| backend/internal/cli/project.go | Implements project ls/get/rm, output formatting, and confirmation prompt logic. |
| backend/internal/cli/project_test.go | Adds HTTP-stubbed CLI tests for the new project commands. |
| backend/internal/cli/client.go | Generalizes daemon JSON calls and adds GET/DELETE helpers for new CLI commands. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #90.
Summary
ao project ls/ao project listwith table output, deterministic ID sorting, degraded status display, empty-state hint, and--json.ao project get <id>with human-readable details and--json.ao project rm <id>with exact-ID confirmation,--yes/-y,--json, and support for both the documented{ok,id}and current backend remove envelopes..github/agent-ci.Dockerfilewith gcc/g++ installed for Go-raceruns.Intentionally skipped
ao project set-defaultfrom the TypeScript CLI, because the Go rewrite has no default-project domain concept yet.Validation
cd backend && go vet ./... && go build ./...cd backend && PATH=/usr/bin:/bin:/usr/sbin:/sbin /opt/homebrew/bin/go test -race ./...npx @redwoodjs/agent-ci run --allcould not run locally because/var/run/docker.sockis unavailable in this session.