fabro/lib/crates/fabro-cli/tests/it/cmd/server.rs
Bryan Helmkamp 41f7b0cda6 Rename fabro serve to fabro server start
Restructure the flat `serve` command into a nested `server start`
subcommand, following the existing namespace pattern (system prune,
repo init, etc.).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 16:17:38 -04:00

50 lines
1.7 KiB
Rust

#[test]
#[cfg(feature = "server")]
fn help() {
use fabro_test::{fabro_snapshot, test_context};
let context = test_context!();
let mut cmd = context.command();
cmd.args(["server", "start", "--help"]);
fabro_snapshot!(context.filters(), cmd, @"
success: true
exit_code: 0
----- stdout -----
Start the HTTP API server
Usage: fabro server start [OPTIONS]
Options:
--debug
Enable DEBUG-level logging (default is INFO) [env: FABRO_DEBUG=]
--port <PORT>
Port to listen on [default: 3000]
--host <HOST>
Host address to bind to [default: 127.0.0.1]
--no-upgrade-check
Disable automatic upgrade check [env: FABRO_NO_UPGRADE_CHECK=true]
--model <MODEL>
Override default LLM model
--quiet
Suppress non-essential output [env: FABRO_QUIET=]
--provider <PROVIDER>
Override default LLM provider
--verbose
Enable verbose output [env: FABRO_VERBOSE=]
--dry-run
Execute with simulated LLM backend
--storage-dir <STORAGE_DIR>
Storage directory (default: ~/.fabro) [env: FABRO_STORAGE_DIR=[STORAGE_DIR]]
--sandbox <SANDBOX>
Sandbox for agent tools
--server-url <SERVER_URL>
Server URL (overrides server.base_url from user.toml) [env: FABRO_SERVER_URL=]
--max-concurrent-runs <MAX_CONCURRENT_RUNS>
Maximum number of concurrent run executions
--config <CONFIG>
Path to server config file (default: ~/.fabro/server.toml)
-h, --help
Print help
----- stderr -----
");
}