feat: Add system diagnostics command

Adds `weevil doctor` to check development environment health.
Reports status of Java, FTC SDK, Android SDK, ADB, and Gradle.
Provides clear next steps based on system state.
This commit is contained in:
Eric Ratliff
2026-01-31 10:50:38 -06:00
parent 4e9575cc4f
commit df7ca091ec
3 changed files with 275 additions and 1 deletions

View File

@@ -33,6 +33,9 @@ enum Commands {
android_sdk: Option<String>,
},
/// Check system health and diagnose issues
Doctor,
/// Setup development environment (system or project)
Setup {
/// Path to project directory (optional - without it, sets up system)
@@ -105,6 +108,9 @@ fn main() -> Result<()> {
Commands::New { name, ftc_sdk, android_sdk } => {
commands::new::create_project(&name, ftc_sdk.as_deref(), android_sdk.as_deref())
}
Commands::Doctor => {
commands::doctor::run_diagnostics()
}
Commands::Setup { path } => {
commands::setup::setup_environment(path.as_deref())
}