Expand description
CLI for battery-pack: create and manage battery packs.
Structs§
- AddArgs
- Battery
Pack Detail - Detailed battery pack info
- Battery
Pack Summary - Summary info for displaying in a list
- Cli
- Example
Info - Installed
Pack - Info about an installed battery pack — its spec plus which crates are currently enabled.
- NewArgs
- Owner
Info - Template
Info
Enums§
- AddTarget
- BpCommands
- Commands
- Crate
Source - Resolved
Add - Result of resolving which crates to add from a battery pack.
Functions§
- add_
battery_ pack - add_
dep_ to_ table - Add a dependency to a toml_edit table (non-workspace mode).
- collect_
user_ dep_ versions - Collect the user’s actual dependency versions from Cargo.toml (and workspace deps if applicable).
- fetch_
battery_ pack_ detail - Fetch detailed battery pack info from crates.io or a local path
- fetch_
battery_ pack_ list - Fetch battery pack list, dispatching based on source.
- find_
installed_ bp_ names - Extract battery pack crate names from a parsed Cargo.toml.
- load_
installed_ packs - Load all installed battery packs with their specs and active features.
- main
- Main entry point for the CLI.
- read_
active_ features - Read active features for a battery pack from user’s package metadata.
- read_
active_ features_ ws - Read active features from
workspace.metadata.battery-pack[bp_name].features. - resolve_
add_ crates - Pure resolution logic for
cargo bp addflags. - resolve_
template - sync_
dep_ in_ table - Sync a dependency in-place: update version if behind, add missing features. Returns true if changes were made.
- validate_
battery_ pack_ cmd - validate_
templates - Validate that each template in a battery pack generates a project that compiles and passes tests.
Type Aliases§
- Template
Config - Backward-compatible alias for
bphelper_manifest::TemplateSpec.