/** 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_11 } from "std/cli/localization/messages/part_2"
import { MESSAGE_108, MESSAGE_109 } from "std/cli/localization/messages/part_21"
import { MESSAGE_178, MESSAGE_179 } from "std/cli/localization/messages/part_35"
import { MESSAGE_185 } from "std/cli/localization/messages/part_37"
import { MESSAGE_230 } from "std/cli/localization/messages/part_46"
import { MESSAGE_293 } from "std/cli/localization/messages/part_58"
import { MESSAGE_47 } from "std/cli/localization/messages/part_9"
import { MessageTemplate, render_message } from "std/cli/message_template"
const MESSAGES: dict<string, MessageTemplate> = {
" artifacts: {0}": MESSAGE_11,
" downloaded: {0}": MESSAGE_47,
" failed: {0}": MESSAGE_54,
" jobs: {0}": MESSAGE_70,
" ready: {0}": MESSAGE_108,
" receipt sha256: {0}": MESSAGE_109,
"Batch download dry run written: {0}": MESSAGE_178,
"Batch download failed": MESSAGE_179,
"Batch results receipt written: {0}": MESSAGE_185,
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)
}