Skip to main content

Crate tokmd_settings

Crate tokmd_settings 

Source
Expand description

§tokmd-settings

Tier 0 (Pure Settings)

Clap-free settings types for the scan and format layers. These types mirror CLI arguments without Clap dependencies, making them suitable for FFI boundaries and library consumers.

§What belongs here

  • Pure data types with Serde derive
  • Scan, language, module, export, analyze, diff settings
  • Default values and conversions

§What does NOT belong here

  • Clap parsing (use tokmd-config)
  • I/O operations
  • Business logic

Structs§

AnalyzeConfig
Analyze command settings.
AnalyzeSettings
Settings for analysis (tokmd analyze).
BadgeConfig
Badge command settings.
CockpitSettings
Settings for cockpit PR metrics (tokmd cockpit).
ContextConfig
Context command settings.
DiffSettings
Settings for diff comparison (tokmd diff).
ExportConfig
Export command settings.
ExportSettings
Settings for file-level export (tokmd export).
GateConfig
Gate command settings.
GateRule
A single gate policy rule (for inline TOML configuration).
LangSettings
Settings for language summary (tokmd lang).
ModuleConfig
Module command settings.
ModuleSettings
Settings for module summary (tokmd module).
RatchetRuleConfig
A single ratchet rule for baseline comparison (TOML configuration).
ScanConfig
Scan settings shared by all commands.
ScanOptions
Scan options shared by all commands that invoke the scanner.
ScanSettings
Global scan settings shared by all operations.
TomlConfig
Root TOML configuration structure.
ViewProfile
A named view profile that can override settings for specific use cases.

Enums§

ChildIncludeMode
ChildrenMode
ConfigMode
ExportFormat
RedactMode

Type Aliases§

TomlResult
Result type alias for TOML parsing errors.