harn-stdlib 0.10.191

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_227, message_228 } from "std/cli/localization/messages/part_45"

/**
 * 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
    == "error: --columns cannot be combined with --json; JSON always returns complete catalog rows" {
    return message_227(locale, values)
  }
  if source == "error: {0}" {
    return message_228(locale, values)
  }
  throw "Unregistered CLI localization message"
}