mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 04:12:56 -04:00
2.0 KiB
2.0 KiB
OpenBitdo Migration Notes
Scope
This migration restores the single-command openbitdo CLI contract and removes the ui/run subcommand surface from user-facing usage.
What changed
bitdoctlwas removed.openbitdo cmd ...was removed.openbitdonow launches interactive TUI directly (with optional--mock).- subcommand forms
openbitdo ui ...andopenbitdo run ...are rejected (historical). - headless output modes remain available through the Rust API, not the CLI.
- Settings schema moved to v2 fields while keeping compatibility defaults for v1 files.
Command mapping
| Prior command form | Current command |
|---|---|
cargo run -p openbitdo -- |
cargo run -p openbitdo -- |
cargo run -p openbitdo -- --mock |
cargo run -p openbitdo -- --mock |
openbitdo ui --mock (historical) |
openbitdo --mock |
openbitdo run ... (historical) |
Not supported in CLI |
New usage
From /Users/brooklyn/data/8bitdo/cleanroom/sdk:
Interactive dashboard:
cargo run -p openbitdo --
cargo run -p openbitdo -- --mock
Historical note
The temporary subcommand surface (openbitdo ui / openbitdo run) is historical (historical) and should not be used for current workflows.
Headless library API
Headless automation remains available to Rust callers through bitdo_tui:
run_headless(core, RunLaunchOptions { output_mode: HeadlessOutputMode::Json, ..Default::default() })
Settings schema migration
Current schema is schema_version = 2 with fields:
advanced_modereport_save_modedevice_filter_textdashboard_layout_modelast_panel_focus
Compatibility behavior:
- v1 settings files load with defaults for missing v2 fields.
- if
advanced_mode = false,report_save_mode = offis normalized tofailure_only.
CI note
The CLI smoke coverage now validates:
openbitdo --helpexposes single-command option usage.openbitdo ui ...andopenbitdo run ...fail as unsupported forms (historical).