/** Generated by make gen-cli-localization. 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_129 } from "std/cli/localization/messages/part_25"
import { MESSAGE_189 } from "std/cli/localization/messages/part_37"
import { MESSAGE_190, MESSAGE_191 } from "std/cli/localization/messages/part_38"
import { MESSAGE_230 } from "std/cli/localization/messages/part_46"
import { MESSAGE_293 } from "std/cli/localization/messages/part_58"
import { MessageTemplate, render_message } from "std/cli/message_template"
const MESSAGES: dict<string, MessageTemplate> = {
" failed: {0}": MESSAGE_54,
" jobs: {0}": MESSAGE_70,
" ready: {0}": MESSAGE_108,
" receipt sha256: {0}": MESSAGE_109,
" submitted: {0}": MESSAGE_129,
"Batch submission receipt written: {0}": MESSAGE_189,
"Batch submit dry run written: {0}": MESSAGE_190,
"Batch submit failed": MESSAGE_191,
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)
}