feat: Project list, get and set commands#22
Merged
Merged
Conversation
e208733 to
fab99b0
Compare
396c3b8 to
7c0d30d
Compare
… environment listing with tests
7c0d30d to
4808238
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds new skpr project CLI capabilities to list projects, get current project details, and set project attributes (contact/tags).
Changes:
- Introduces
skpr project list,skpr project get, andskpr project set <key> <value>commands wired into the root CLI. - Adds project environment formatting helper (
ListEnvironmentsByName) plus a unit test. - Implements list/get table output and set operations via the API client.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/project/project.go | Adds helper to order environments for display (currently mutates input slice). |
| internal/project/project_test.go | Tests environment ordering helper. |
| internal/command/project/set/command.go | Implements setting project attributes (contact, tags). |
| internal/command/project/list/command.go | Implements listing projects and rendering a table (has package/comment/copy-paste issues). |
| internal/command/project/get/command.go | Implements fetching and printing current project details (comment mismatch). |
| cmd/skpr/project/set/command.go | Adds Cobra wiring for skpr project set. |
| cmd/skpr/project/list/command.go | Adds Cobra wiring for skpr project list. |
| cmd/skpr/project/get/command.go | Adds Cobra wiring for skpr project get (missing args validation; help text mismatch). |
| cmd/skpr/project/command.go | Registers project command and subcommands (comment mismatch). |
| cmd/skpr/main.go | Registers the new top-level project command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
Author
|
Might be worth considering a rename of the |
nickschuch
approved these changes
Apr 2, 2026
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.
skpr project listskpr project getskpr project set contact "me@example.com"