feat(cli): implement info command for boxlite-cli#201
Merged
DorianZheng merged 3 commits intoboxlite-ai:mainfrom Feb 9, 2026
Merged
feat(cli): implement info command for boxlite-cli#201DorianZheng merged 3 commits intoboxlite-ai:mainfrom
boxlite-cli#201DorianZheng merged 3 commits intoboxlite-ai:mainfrom
Conversation
DorianZheng
reviewed
Feb 6, 2026
boxlite/src/runtime/core.rs
Outdated
| } | ||
|
|
||
| /// Get system-wide runtime information. | ||
| pub async fn system_info(&self) -> BoxliteResult<SystemInfo> { |
Member
There was a problem hiding this comment.
Hi @shayne-snap — nice work on the CLI command! I'm wondering though, do we need system_info on the runtime itself?
It mixes static info (version, os, arch) with runtime state. We already have list_info() for boxes — the CLI could count from that.
For images, maybe we can expose a Image manager struct in some way?
Curious what you think!
Contributor
Author
There was a problem hiding this comment.
Great point! Thanks for reminding me this again, we should keep Runtime clean. Will move it into the CLI.
- Add SystemInfo type (version, home_dir, virtualization, os, arch, box counts, images_count) and BoxliteRuntime::system_info() in boxlite. - Add `info` subcommand with --format yaml|json (default: yaml). - Add integration tests for info JSON/YAML output and roundtrip.
… CLI - boxlite: add VERSION constant; remove SystemInfo and home_dir() from public API - boxlite-cli: resolve_runtime_options() + create_runtime_with_options() to avoid resolving config twice; info uses options.home_dir before creating runtime - boxlite-cli: define SystemInfo locally in info.rs (CLI output shape only) - boxlite-cli tests: assert via serde_json::Value and INFO_JSON_KEYS (no boxlite type) - README: document boxlite info and inspect, run/create -p/-v examples Co-authored-by: Cursor <[email protected]>
656afcc to
90c6d88
Compare
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.
Info
#35
Key Changes
boxlite infofor system-wide runtime info**VERSION**in boxlite.infosubcommand with --format yaml|json (default: yaml).inspect,infoand-p -vin READMETesting
./target/debug/boxlite info