harn-stdlib 0.10.189

Embedded Harn standard library source catalog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { message_234 } from "std/cli/localization/messages/part_46"
import { message_235 } from "std/cli/localization/messages/part_47"

/**
 * 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 == "failed to create {0}: {1}" {
    return message_234(locale, values)
  }
  if source == "failed to write {0}: {1}" {
    return message_235(locale, values)
  }
  throw "Unregistered CLI localization message"
}