Expand description
§tokmd-config
Tier 4 (Configuration)
This crate defines the CLI arguments and configuration file structures. Currently it couples strict configuration schemas with Clap CLI parsing.
§What belongs here
- Clap
Parser,Args,Subcommandstructs - Configuration file struct definitions (Serde)
- Default values and enums
§What does NOT belong here
- Business logic
- I/O operations (except config file parsing)
- Higher-tier crate dependencies
§Future Direction
- Split into
tokmd-settings(pure config) andtokmd-cli(Clap parsing)
Structs§
- Analyze
Config - Analyze command settings.
- Badge
Args - Badge
Config - Badge command settings.
- Baseline
Args - Cli
- tokmd — code awareness for AI contexts
- CliAnalyze
Args - CliCheck
Ignore Args - CliContext
Args - CliExport
Args - CliGate
Args - CliLang
Args - CliModule
Args - Cockpit
Args - Completions
Args - Context
Config - Context command settings.
- Diff
Args - Export
Config - Export command settings.
- Gate
Config - Gate command settings.
- Gate
Rule - A single gate policy rule (for inline TOML configuration).
- Global
Args - Handoff
Args - Init
Args - Module
Config - Module command settings.
- Profile
- Ratchet
Rule Config - A single ratchet rule for baseline comparison (TOML configuration).
- RunArgs
- Scan
Config - Scan settings shared by all commands.
- Sensor
Args - Toml
Config - Root TOML configuration structure.
- Tools
Args - User
Config - View
Profile - A named view profile that can override settings for specific use cases.
Enums§
- Analysis
Format - Analysis
Preset - Badge
Metric - Child
Include Mode - Children
Mode - Cockpit
Format - Color
Mode - Commands
- Config
Mode - Context
Output - Context
Strategy - Diff
Format - Diff
Range Mode - Effort
Layer - Effort
Model Kind - Export
Format - Gate
Format - Handoff
Preset - Import
Granularity - Init
Profile - Near
DupScope - Redact
Mode - Sensor
Format - Shell
- Table
Format - Tool
Schema Format - Output format for rendered tool schemas.
- Value
Metric
Type Aliases§
- Toml
Result - Result type alias for TOML parsing errors.