Add CLI commands to create, update, delete, and view repo types - #1078
Open
zmoskala wants to merge 2 commits into
Open
Add CLI commands to create, update, delete, and view repo types#1078zmoskala wants to merge 2 commits into
zmoskala wants to merge 2 commits into
Conversation
…2067). Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
8 tasks
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 Mojito CLI commands so engineers can manage repo type records without calling the REST API directly.
repo-type-create,repo-type-update,repo-type-delete, andrepo-type-view/api/repo-typesREST API viaRepoTypeClient(same pattern asrepo-create/repo-update/repo-delete/repo-view)repo-type-viewprints id, name, and description--name/-n,--description/-d, and--new-name/-nnon update). Shared AI prompt and integrity checkers are out of scope for this changeHelp text comes from JCommander parameter descriptions. Happy-path and error cases (duplicate name, unknown type, update with no optional flags) are covered by
CLITestBaseintegration tests.Test plan
mojito --helplists all fourrepo-type-*commands--new-name; old name not found--new-namenor--description→ validation errorLocal CLI evidence (against localhost)
Help:
Create and view:
Update description:
Rename (id stays 1; old name is gone):
Delete:
Duplicate name:
Unknown type:
Update with no optional flags:
Cleanup:
Made with Cursor