Cross-platform tool for generating clean, testable FTC robot projects without editing the SDK installation. Features: - Standalone project generation with proper separation from SDK - Per-project SDK configuration via .weevil.toml - Local unit testing support (no robot required) - Cross-platform build/deploy scripts (Linux/macOS/Windows) - Project upgrade system preserving user code - Configuration management commands - Comprehensive test suite (11 passing tests) - Zero-warning builds Architecture: - Pure Rust implementation with embedded Gradle wrapper - Projects use deployToSDK task to copy code to FTC SDK TeamCode - Git-ready projects with automatic initialization - USB and WiFi deployment with auto-detection Commands: - weevil new <name> - Create new project - weevil upgrade <path> - Update project infrastructure - weevil config <path> - View/modify project configuration - weevil sdk status/install/update - Manage SDKs Addresses the core problem: FTC's SDK structure forces students to edit framework internals instead of separating concerns like industry standard practices. Weevil enables proper software engineering workflows for robotics education.
19 lines
324 B
Rust
19 lines
324 B
Rust
use anyhow::Result;
|
|
|
|
#[allow(dead_code)]
|
|
pub struct Deployer {
|
|
// Future: ADB communication, APK building, etc.
|
|
}
|
|
|
|
impl Deployer {
|
|
#[allow(dead_code)]
|
|
pub fn new() -> Self {
|
|
Self {}
|
|
}
|
|
|
|
#[allow(dead_code)]
|
|
pub fn deploy(&self) -> Result<()> {
|
|
// Coming soon!
|
|
Ok(())
|
|
}
|
|
} |