This repository was archived by the owner on Jan 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Add JSON and YAML output options for the jmp-admin, jmp-client, and jmp-exporter CLIs
#335
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6c3108f
Use pydantic to validate and serialize k8s objects for Jumpstarter
kirkbrauer 4679023
Add JSON output CLI option for admin CLI
kirkbrauer 8dfef75
Fix get clients
kirkbrauer fb26b40
Fix Pydantic validation and model issues
kirkbrauer 58ce7b1
Refactor to make printing objects more type-safe
kirkbrauer 45b33c8
Add output to admin create commands
kirkbrauer a928a28
Add name output mode for simplified output
kirkbrauer 4cce53e
Add OutputType meta type and name-only outputs for admin delete
kirkbrauer a46430c
Add nointeractive option for automated script usage
kirkbrauer 9c6d95a
Fixed all admin CLI tests
kirkbrauer b0e2614
Add admin create tests for JSON/YAML/name output
kirkbrauer 0a336cd
Add nointeractive and name output tests for admin delete
kirkbrauer 17b63e7
Add JSON, YAML, and name output tests for admin get
kirkbrauer bb977c3
Add nointeractive test to import client
kirkbrauer bef5b06
Add tests for import path output
kirkbrauer a316e6d
Add JSON output for client list-configs
kirkbrauer d217883
Add JSON output for exporter configs list
kirkbrauer 5276158
Fix jumpstarter-kubernetes tests
kirkbrauer 08958d8
Add path output options for client/exporter CLIs
kirkbrauer 99f09db
Fix issue when setting current client to None
kirkbrauer 59dcf46
Fix coderabbit issues
kirkbrauer 696a82c
Add JSON output for version subcommand
kirkbrauer a128a4c
Add entrypoints for all CLI packages
kirkbrauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
packages/jumpstarter-cli-admin/jumpstarter_cli_admin/__main__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| """Allow running Jumpstarter through `python -m jumpstarter_cli_admin`.""" | ||
|
|
||
| from . import admin | ||
|
|
||
| if __name__ == "__main__": | ||
| admin(prog_name="jmp-admin") |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to aligning with kubectl :)