harn-stdlib 0.10.182

Embedded Harn standard library source catalog
Documentation
/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { message_0, message_1, message_2 } from "std/cli/localization/providers/cache_probe/part_0"

/**
 * Select a registered CLI template without interpreting argument text.
 * @effects: []
 * @errors: ["Unregistered CLI localization message", "CLI localization argument count does not match its registered template"]
 */
pub fn cli_message(locale: string, source: string, values: list<string>) -> string {
  if source
    == "{0}  buckets: cache_effective={1} cache_supported_miss={2} unsupported_zero={3} support_unknown_zero={4} no_prompt_tokens={5} provider_field_inconsistent={6}\n" {
    return message_0(locale, values)
  }
  if source == "{0}  run {1}: {2} input={3} fresh={4} cache_read={5} cache_write={6}\n" {
    return message_1(locale, values)
  }
  if source == "{0} {1} support={2} breakpoint={3} verdict={4} dogfood_failure={5}\n" {
    return message_2(locale, values)
  }
  throw "Unregistered CLI localization message"
}