harn-stdlib 0.10.190

Embedded Harn standard library source catalog
Documentation
/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { message_248 } from "std/cli/localization/messages/part_49"
import { message_269 } from "std/cli/localization/messages/part_53"
import { message_300 } from "std/cli/localization/messages/part_60"
import { message_309 } from "std/cli/localization/messages/part_61"

/**
 * 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 == "no model recommendation for ram_bucket={0} gpu={1} has_provider_key={2}" {
    return message_248(locale, values)
  }
  if source == "recommendation table requested a cloud default without cloud credentials" {
    return message_269(locale, values)
  }
  if source == "{0}  protocol={1}" {
    return message_300(locale, values)
  }
  if source == "{0} route(s) declare the {1} operation" {
    return message_309(locale, values)
  }
  throw "Unregistered CLI localization message"
}