Add projects update command#173
Open
IlyaasK wants to merge 1 commit into
Open
Conversation
Monitoring Plan: Add
|
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.
Summary
Adds
kernel projects update <id-or-name> --name <name>to close the projects CRUD parity gap in the CLI.What Changed
ProjectsService.Updateto the generated Go SDKProjects.Updatemethod.ProjectsUpdateInputandProjectsCmd.Updatewith the existing<id-or-name>resolver.--nameas the required update field.--output json, matching the existing project read/update-style commands that return SDK objects.projects updateCobra command.--name--outputWhy
projects create,projects get,projects list, andprojects deletealready existed, and the SDK already exposes project update. This PR keeps the CLI change surgical by adding name update only, leaving browser telemetry parity for a separate UX/API-design PR.Verification
env GOCACHE=/private/tmp/kernel-cli-go-cache go test ./cmd -run 'TestProjects(Update|List|Get|Limits|Resolve)'env GOCACHE=/private/tmp/kernel-cli-go-cache go test ./cmd ./pkg/utilhttptestlocal-port restriction; rerun outside the sandbox passed.make testmake build./bin/kernel projects update --helpProduction smoke against
https://api.onkernel.com:kernel projects update <old-name> --name <new-name> --output json.kernel projects get <new-name> --output json.Localhost smoke:
http://localhost:3001, but the local API key available in this thread is no longer valid for the current local server state, so the smoke stopped before creating any resource.Note
Low Risk
CLI-only addition mirroring existing project commands; scope is limited to renaming via the SDK with unit test coverage.
Overview
Adds
kernel projects update <id-or-name> --name <name>so the CLI can rename projects and complete basic projects CRUD alongside create/get/list/delete.The command reuses the existing id-or-name resolver and optional
--output json, calls the SDKProjects.Updatewith only the name field, and prints a success line otherwise. Tests cover happy path, JSON output, name resolution, missing--name, and invalid output.Reviewed by Cursor Bugbot for commit 7ff4c5c. Bugbot is set up for automated code reviews on this repo. Configure here.