/** 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_109 } from "std/cli/localization/messages/part_21"
import { MESSAGE_126 } from "std/cli/localization/messages/part_25"
import { MESSAGE_175, MESSAGE_176, MESSAGE_177 } from "std/cli/localization/messages/part_35"
import { MESSAGE_22, MESSAGE_23, MESSAGE_24 } from "std/cli/localization/messages/part_4"
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> = {
" cancelable: {0}": MESSAGE_22,
" canceled: {0}": MESSAGE_23,
" canceling: {0}": MESSAGE_24,
" failed: {0}": MESSAGE_54,
" jobs: {0}": MESSAGE_70,
" receipt sha256: {0}": MESSAGE_109,
" skipped: {0}": MESSAGE_126,
"Batch cancel dry run written: {0}": MESSAGE_175,
"Batch cancel failed": MESSAGE_176,
"Batch cancellation receipt written: {0}": MESSAGE_177,
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)
}