/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { MESSAGE_54 } from "std/cli/localization/messages/part_10"
import { MESSAGE_70 } from "std/cli/localization/messages/part_14"
import { MESSAGE_108, MESSAGE_109 } from "std/cli/localization/messages/part_21"
import { MESSAGE_121 } from "std/cli/localization/messages/part_24"
import { MESSAGE_160 } from "std/cli/localization/messages/part_32"
import { MESSAGE_186, MESSAGE_187, MESSAGE_188 } from "std/cli/localization/messages/part_37"
import { MESSAGE_230 } from "std/cli/localization/messages/part_46"
import { MESSAGE_29 } from "std/cli/localization/messages/part_5"
import { MESSAGE_293 } from "std/cli/localization/messages/part_58"
import { MessageTemplate, render_message } from "std/cli/message_template"
const MESSAGES: dict<string, MessageTemplate> = {
" completed: {0}": MESSAGE_29,
" failed: {0}": MESSAGE_54,
" jobs: {0}": MESSAGE_70,
" ready: {0}": MESSAGE_108,
" receipt sha256: {0}": MESSAGE_109,
" running: {0}": MESSAGE_121,
" unknown: {0}": MESSAGE_160,
"Batch status dry run written: {0}": MESSAGE_186,
"Batch status failed": MESSAGE_187,
"Batch status receipt written: {0}": MESSAGE_188,
errors: MESSAGE_230,
warnings: MESSAGE_293,
}
/**
* 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 {
const template = MESSAGES[source]
guard template != nil else {
throw "Unregistered CLI localization message"
}
return render_message(template, locale, values)
}