Skip to main content

Crate tokmd

Crate tokmd 

Source
Expand description

§tokmd

Tier 5 (CLI Binary)

This is the entry point for the tokmd command-line application. It orchestrates all other crates to perform the requested actions.

§What belongs here

  • Command line argument parsing
  • Configuration loading and profile resolution
  • Command dispatch to appropriate handlers
  • Error handling and exit codes

§What does NOT belong here

  • Business logic (belongs in lower-tier crates)
  • Duplicated functionality from other crates
  • Complex computation (delegate to appropriate crates)

This crate should contain minimal business logic.

Structs§

ConfigContext
Configuration context combining TOML config, JSON config, and resolved profile.
ResolvedConfig
Resolved configuration combining TOML and JSON sources.

Functions§

format_error
resolve_config
Resolve configuration from context and profile name.
resolve_export
resolve_export_with_config
Resolve export args using ConfigContext.
resolve_lang
resolve_lang_with_config
Resolve lang args using ConfigContext.
resolve_module
resolve_module_with_config
Resolve module args using ConfigContext.
resolve_profile
Resolve a JSON profile by name (legacy).
run