Skip to main content

Crate tokmd_config

Crate tokmd_config 

Source
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, Subcommand structs
  • 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) and tokmd-cli (Clap parsing)

Structs§

AnalyzeConfig
Analyze command settings.
BadgeArgs
BadgeConfig
Badge command settings.
BaselineArgs
Cli
tokmd — code awareness for AI contexts
CliAnalyzeArgs
CliCheckIgnoreArgs
CliContextArgs
CliExportArgs
CliGateArgs
CliLangArgs
CliModuleArgs
CockpitArgs
CompletionsArgs
ContextConfig
Context command settings.
DiffArgs
ExportConfig
Export command settings.
GateConfig
Gate command settings.
GateRule
A single gate policy rule (for inline TOML configuration).
GlobalArgs
HandoffArgs
InitArgs
ModuleConfig
Module command settings.
Profile
RatchetRuleConfig
A single ratchet rule for baseline comparison (TOML configuration).
RunArgs
ScanConfig
Scan settings shared by all commands.
SensorArgs
TomlConfig
Root TOML configuration structure.
ToolsArgs
UserConfig
ViewProfile
A named view profile that can override settings for specific use cases.

Enums§

AnalysisFormat
AnalysisPreset
BadgeMetric
ChildIncludeMode
ChildrenMode
CockpitFormat
ColorMode
Commands
ConfigMode
ContextOutput
ContextStrategy
DiffFormat
DiffRangeMode
EffortLayer
EffortModelKind
ExportFormat
GateFormat
HandoffPreset
ImportGranularity
InitProfile
NearDupScope
RedactMode
SensorFormat
Shell
TableFormat
ToolSchemaFormat
Output format for rendered tool schemas.
ValueMetric

Type Aliases§

TomlResult
Result type alias for TOML parsing errors.