Skip to main content

Module args

Module args 

Source
Expand description

Command-line argument definitions (clap derive) and the small wrapper enums that adapt bhtune-core’s domain enums to clap::ValueEnum.

Rust’s orphan rule forbids implementing a foreign trait (clap::ValueEnum) for a foreign type (bhtune_core::ProcessType etc.), so each domain enum this CLI exposes as a flag gets a small local wrapper here with a From/Into conversion — not a design choice, a language requirement.

Structs§

Cli
The bhtune CLI: a scriptable, no-GUI way to run an MRFT tune and inspect its history.
ExportArgs
ReplayDriverUnsupported
The error DriverKindArg::try_from returns for bhtune_db::models::TuneDriver::Replay – see that impl’s doc comment.
SimulateArgs
bhtune simulate: every field defaulted for a true zero-configuration demo run.
TuneArgs
Flags shared by tune and (a defaulted subset of) simulate.

Enums§

Command
ControllerTypeArg
A bhtune_core::ControllerType value, as a CLI flag.
DirectionArg
A bhtune_core::ControllerDirection value, as a CLI flag.
DriverKindArg
Which bhtune_driver::Driver implementation a tune run should use.
ExportFormat
HistoryCommand
OpcCommand
OpcSearchMatchModeArg
OutcomeArg
A bhtune_db::models::TuneOutcome value, as a CLI flag.
ProcessTypeArg
A bhtune_core::ProcessType value, as a CLI flag.
ResponseLevelArg
A bhtune_core::ResponseLevel value, as a CLI flag (--write-pid <aggressive|moderate|sluggish>).
SearchIndexCommand
SearchIndexControlActionArg
TemplateCommand
TemplateFileFormat
File format for template export/auto-detected on template import.