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,
  message_3,
  message_4,
} from "std/cli/localization/providers/recommend/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 == "local provider recommendations\n" {
    return message_0(locale, values)
  }
  if source == "{0}   caveat: {1}\n" {
    return message_1(locale, values)
  }
  if source == "{0}(no local model outcomes found)\n" {
    return message_2(locale, values)
  }
  if source == "{0}source: {1}\n" {
    return message_3(locale, values)
  }
  if source == "{0}{1}. {2} {3} ({4}, selector {5}, tools {6})\n" {
    return message_4(locale, values)
  }
  throw "Unregistered CLI localization message"
}