Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 90 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions boxlite-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ anyhow = "1.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }

# HTTP server (serve subcommand)
async-stream = "0.3"
axum = { version = "0.8", features = ["macros"] }
base64 = "0.22"
tower-http = { version = "0.6", features = ["cors", "trace"] }

# Serialization (aligned with core boxlite)
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
3 changes: 3 additions & 0 deletions boxlite-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ pub enum Commands {
/// Display resource usage statistics for a box
Stats(crate::commands::stats::StatsArgs),

/// Start a long-running REST API server
Serve(crate::commands::serve::ServeArgs),

/// Generate shell completion script (hidden from help)
#[command(hide = true)]
Completion(CompletionArgs),
Expand Down
1 change: 1 addition & 0 deletions boxlite-cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub mod pull;
pub mod restart;
pub mod rm;
pub mod run;
pub mod serve;
pub mod start;
pub mod stats;
pub mod stop;
Loading
Loading