Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-environment

Environment files for Pudu: load .env variables safely with layered files, discovery, expansion, typed reads, and secrets kept out of every message

0.1.0Apache-2.01

InstallClose

Messages.pudu

Pudu72 lines3.0 KB

GitHub ↗
1/** @Constants.Messages.Module — every sentence the package reports */2module PuduLangEnvironment.Constants.Messages34/// A file source with a blank path.5export const BLANK_PATH: Str = "An environment file path is blank."67/// A file that does not exist; `<1>` is its path.8export const MISSING_FILE: Str = "The environment file '<1>' does not exist."910/// A file that could not be read; `<1>` is its path and `<2>` the system's reason.11export const UNREADABLE: Str = "The environment file '<1>' could not be read: <2>"1213/// Bytes that do not decode; `<1>` is the source and `<2>` the encoding.14export const UNDECODABLE: Str = "The environment source '<1>' is not valid <2>."1516/// A quoted value never closed; `<1>` is the source, `<2>` the line, and `<3>` the key.17export const UNCLOSED_QUOTE: Str = "The value of '<3>' in '<1>' opens a quote on line <2> that is never closed."1819/// Nothing found by discovery; `<1>` is every path looked for.20export const NOT_FOUND: Str = "No environment file was found among: <1>"2122/// An environment name that could leave its directory; `<1>` is the name.23export const UNSAFE_ENVIRONMENT_NAME: Str = "The environment name '<1>' is blank or holds a path separator, '..', or a character a file name cannot hold."2425/// Options refused at the start of a load; `<1>` is every problem.26export const INVALID_OPTIONS: Str = "The environment options are invalid: <1>"2728/// Keys with no value; `<1>` is every key.29export const MISSING: Str = "No value is set for: <1>"3031/// A value of the wrong kind; `<1>` is the key and `<2>` the kind expected.32export const MALFORMED: Str = "The value of '<1>' is not <2>."3334/// Settings a validator refused; `<1>` is every failed property with its code.35export const INVALID_SETTINGS: Str = "The settings are invalid: <1>"3637/// One failed property; `<1>` is its path and `<2>` the validator's code.38export const FAILED_PROPERTY: Str = "<1> (<2>)"3940/// Given files combined with probing.41export const FILES_WITH_PROBE: Str = "files cannot be given while probing"4243/// Given files combined with the cascade.44export const FILES_WITH_CASCADE: Str = "files cannot be given with the environment cascade"4546/// Sources combined with given files.47export const SOURCES_WITH_FILES: Str = "sources and files cannot both be given"4849/// Sources combined with probing.50export const SOURCES_WITH_PROBE: Str = "sources cannot be given while probing"5152/// Sources combined with the cascade.53export const SOURCES_WITH_CASCADE: Str = "sources cannot be given with the environment cascade"5455/// A negative probe depth.56export const NEGATIVE_PROBE: Str = "probe levels must not be negative"5758/// An empty file list.59export const NO_FILES: Str = "files must name at least one file"6061/// A view; `<1>` is the count of applied keys and `<2>` the sources read.62export const DESCRIBED: Str = "<1> variables applied from <2>; values are hidden."6364/// A view built from no source.65export const NO_SOURCES: Str = "no source"6667/// What separates items listed in one sentence.68export const LIST_SEPARATOR: Str = ", "6970/// What separates problems listed in one sentence.71export const PROBLEM_SEPARATOR: Str = "; "72