darwin-shell 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- darwin_shell/__init__.py +34 -0
- darwin_shell/cli.py +140 -0
- darwin_shell/share/bootstrap.sh +74 -0
- darwin_shell/share/checkpoint.sh +437 -0
- darwin_shell/share/cli.sh +555 -0
- darwin_shell/share/core.sh +214 -0
- darwin_shell/share/datetime.sh +367 -0
- darwin_shell/share/env.sh +322 -0
- darwin_shell/share/file.sh +303 -0
- darwin_shell/share/i18n.sh +181 -0
- darwin_shell/share/json.sh +258 -0
- darwin_shell/share/locale/zh_CN.sh +456 -0
- darwin_shell/share/lock.sh +414 -0
- darwin_shell/share/log.sh +317 -0
- darwin_shell/share/notify.sh +576 -0
- darwin_shell/share/process.sh +394 -0
- darwin_shell/share/sched.sh +360 -0
- darwin_shell/share/stats.sh +540 -0
- darwin_shell/share/terminal.sh +226 -0
- darwin_shell-0.1.0.dist-info/METADATA +208 -0
- darwin_shell-0.1.0.dist-info/RECORD +25 -0
- darwin_shell-0.1.0.dist-info/WHEEL +5 -0
- darwin_shell-0.1.0.dist-info/entry_points.txt +2 -0
- darwin_shell-0.1.0.dist-info/licenses/LICENSE +21 -0
- darwin_shell-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Simplified Chinese messages for darwin-shell. Sourced by i18n.sh; keys are
|
|
3
|
+
# the English msgids used at call sites. Single quotes keep %1$s literal.
|
|
4
|
+
|
|
5
|
+
_dsh_private_i18n_table=(
|
|
6
|
+
# core.sh help
|
|
7
|
+
['Usage: dsh::core::fail <code> <msgid> [args...]']='用法:dsh::core::fail <错误码> <消息标识> [参数...]'
|
|
8
|
+
['Write a diagnostic to stderr and return <code>. Never exits.']='向 stderr 输出诊断信息并返回 <错误码>,不会退出进程。'
|
|
9
|
+
['Usage: dsh::core::have_cmd <command>']='用法:dsh::core::have_cmd <命令>'
|
|
10
|
+
['Return 0 when <command> is available, 1 otherwise. No output.']='命令可用时返回 0,否则返回 1,不输出内容。'
|
|
11
|
+
['Usage: dsh::core::require_cmd <command>...']='用法:dsh::core::require_cmd <命令>...'
|
|
12
|
+
['Return 0 when all commands exist; otherwise fail with code 2.']='所有命令都存在时返回 0,否则以错误码 2 失败。'
|
|
13
|
+
['Usage: dsh::core::tool <logical-name>']='用法:dsh::core::tool <逻辑工具名>'
|
|
14
|
+
['Print the command implementing <logical-name>. Candidates are tried in order;']='输出实现 <逻辑工具名> 的命令,按顺序尝试候选;'
|
|
15
|
+
['DARWIN_SH_TOOL_<NAME> (uppercase) overrides the chain. Returns 3 when none exist.']='DARWIN_SH_TOOL_<NAME>(大写)可覆盖候选链;都不存在时返回 3。'
|
|
16
|
+
['Usage: dsh::core::warn_once <key> <msgid> [args...]']='用法:dsh::core::warn_once <键> <消息标识> [参数...]'
|
|
17
|
+
['Emit a stderr warning once per key. Used for explicit degradation paths.']='每个键只向 stderr 输出一次警告,用于显式的降级路径。'
|
|
18
|
+
['Usage: dsh::core::dry_run']='用法:dsh::core::dry_run'
|
|
19
|
+
['Return 0 when DARWIN_SH_DRY_RUN is truthy, 1 otherwise. No output.']='DARWIN_SH_DRY_RUN 为真时返回 0,否则返回 1,不输出内容。'
|
|
20
|
+
['dsh::core: no help for %1$s']='dsh::core:没有 %1$s 的帮助信息'
|
|
21
|
+
|
|
22
|
+
# core.sh diagnostics
|
|
23
|
+
['dsh: error: %1$s']='dsh:错误:%1$s'
|
|
24
|
+
['dsh: warn: %1$s']='dsh:警告:%1$s'
|
|
25
|
+
['dsh::core::fail: invalid code: %1$s']='dsh::core::fail:无效错误码:%1$s'
|
|
26
|
+
['required command not found: %1$s']='未找到必需命令:%1$s'
|
|
27
|
+
['tool: logical name required']='tool:缺少逻辑工具名'
|
|
28
|
+
['tool: unknown logical name: %1$s']='tool:未知逻辑工具名:%1$s'
|
|
29
|
+
['%1$s=%2$s is unavailable; falling back to [%3$s]']='%1$s=%2$s 不可用;回退到 [%3$s]'
|
|
30
|
+
['tool: no implementation for: %1$s (tried [%2$s])']='tool:没有可用的实现:%1$s(已尝试 [%2$s])'
|
|
31
|
+
|
|
32
|
+
# env.sh dependency guard
|
|
33
|
+
['dsh::env: core module is required; source bootstrap.sh first']='dsh::env:需要 core 模块;请先 source bootstrap.sh'
|
|
34
|
+
['dsh::env: core module failed to load']='dsh::env:core 模块加载失败'
|
|
35
|
+
|
|
36
|
+
# env.sh help
|
|
37
|
+
['Usage: dsh::env::parse <file>']='用法:dsh::env::parse <文件>'
|
|
38
|
+
['Parse KEY=VALUE from <file> into an internal map. No exports.']='从 <文件> 解析 KEY=VALUE 到内部映射表,不导出变量。'
|
|
39
|
+
['First duplicate wins. Key must match [A-Za-z_][A-Za-z0-9_]*.']='重复键以首次出现为准。键名须匹配 [A-Za-z_][A-Za-z0-9_]*。'
|
|
40
|
+
['No ${VAR} expansion and no multiline values.']='不展开 ${VAR},也不支持多行值。'
|
|
41
|
+
['Usage: dsh::env::load <file> [--override]']='用法:dsh::env::load <文件> [--override]'
|
|
42
|
+
['Parse <file> and export its keys. Existing variables are kept']='解析 <文件> 并导出其中的键。默认保留已存在的变量,'
|
|
43
|
+
['unless --override is given. Under dry-run, print key names only.']='除非指定 --override。dry-run 下只打印键名。'
|
|
44
|
+
['Usage: dsh::env::get <key> [default]']='用法:dsh::env::get <键> [默认值]'
|
|
45
|
+
['Print the value of <key> from the environment, or <default>.']='从环境变量输出 <键> 的值,不存在时输出 <默认值>。'
|
|
46
|
+
['Usage: dsh::env::has <key>']='用法:dsh::env::has <键>'
|
|
47
|
+
['Return 0 when <key> is set, even if its value is empty.']='<键> 已设置时返回 0,即使其值为空。'
|
|
48
|
+
['Usage: dsh::env::require <key>...']='用法:dsh::env::require <键>...'
|
|
49
|
+
['Return 0 when every key is set; otherwise fail with code 2.']='所有键都已设置时返回 0,否则以错误码 2 失败。'
|
|
50
|
+
['Key names may be reported; values are never printed.']='错误中可能出现键名,但绝不会打印键对应的值。'
|
|
51
|
+
['dsh::env: no help for %1$s']='dsh::env:没有 %1$s 的帮助信息'
|
|
52
|
+
|
|
53
|
+
# env.sh diagnostics
|
|
54
|
+
['line %1$s: unexpected text after quoted value']='第 %1$s 行:引号值之后存在多余文本'
|
|
55
|
+
['line %1$s: unterminated single-quoted value']='第 %1$s 行:单引号值未闭合'
|
|
56
|
+
['line %1$s: trailing backslash in quoted value']='第 %1$s 行:引号值末尾有孤立反斜杠'
|
|
57
|
+
['line %1$s: unterminated double-quoted value']='第 %1$s 行:双引号值未闭合'
|
|
58
|
+
['%1$s: invalid key: %2$s']='%1$s:无效键名:%2$s'
|
|
59
|
+
['%1$s: key is not allowed: %2$s']='%1$s:不允许使用键:%2$s'
|
|
60
|
+
['env::parse: file required']='env::parse:缺少文件参数'
|
|
61
|
+
['env::parse: cannot read: %1$s']='env::parse:无法读取:%1$s'
|
|
62
|
+
['%1$s: expected KEY=VALUE']='%1$s:应为 KEY=VALUE 格式'
|
|
63
|
+
['%1$s: %2$s']='%1$s:%2$s'
|
|
64
|
+
['env::load: file required']='env::load:缺少文件参数'
|
|
65
|
+
['env::load: unknown option: %1$s']='env::load:未知选项:%1$s'
|
|
66
|
+
['env::require: at least one key required']='env::require:至少需要一个键'
|
|
67
|
+
['env::require: missing %1$s']='env::require:缺少 %1$s'
|
|
68
|
+
|
|
69
|
+
# terminal.sh help
|
|
70
|
+
['Usage: dsh::terminal::enabled [stdout|stderr]']='用法:dsh::terminal::enabled [stdout|stderr]'
|
|
71
|
+
['Return 0 when color is enabled for the given stream (default stderr).']='指定流启用颜色时返回 0(默认 stderr)。'
|
|
72
|
+
['Usage: dsh::terminal::code <name> [stdout|stderr]']='用法:dsh::terminal::code <名称> [stdout|stderr]'
|
|
73
|
+
['Print the ANSI sequence for <name>, or nothing when color is disabled.']='输出 <名称> 对应的 ANSI 序列;颜色关闭时不输出任何内容。'
|
|
74
|
+
['Names: reset red green yellow cyan bold dim none.']='名称:reset red green yellow cyan bold dim none。'
|
|
75
|
+
['Usage: dsh::terminal::line <stdout|stderr> <color|none> <text...>']='用法:dsh::terminal::line <stdout|stderr> <颜色|none> <文本...>'
|
|
76
|
+
['Write one diagnostic line to the chosen stream, styled when color is enabled.']='向指定流输出一行诊断信息;启用颜色时会着色。'
|
|
77
|
+
['Usage: dsh::terminal::%1$s <text...>']='用法:dsh::terminal::%1$s <文本...>'
|
|
78
|
+
['Write a styled diagnostic to stderr; never exits.']='向 stderr 输出带样式的诊断信息,不会退出进程。'
|
|
79
|
+
['dsh::terminal: no help for %1$s']='dsh::terminal:没有 %1$s 的帮助信息'
|
|
80
|
+
|
|
81
|
+
# terminal.sh diagnostics
|
|
82
|
+
['dsh::terminal: invalid DARWIN_SH_COLOR: %1$s; using auto']='dsh::terminal:无效的 DARWIN_SH_COLOR:%1$s;改用 auto'
|
|
83
|
+
['dsh::terminal: invalid stream: %1$s']='dsh::terminal:无效的数据流:%1$s'
|
|
84
|
+
['dsh::terminal::code: name required']='dsh::terminal::code:缺少名称参数'
|
|
85
|
+
['dsh::terminal: invalid color: %1$s']='dsh::terminal:无效颜色:%1$s'
|
|
86
|
+
['dsh::terminal::line: stream and color required']='dsh::terminal::line:缺少数据流和颜色参数'
|
|
87
|
+
|
|
88
|
+
# log.sh help
|
|
89
|
+
['Usage: dsh::log::configure [--name N] [--dir D] [--file F] [--level L] [--stderr-only]']='用法:dsh::log::configure [--name N] [--dir D] [--file F] [--level L] [--stderr-only]'
|
|
90
|
+
['Configure logging explicitly. Idempotent and creates no files.']='显式配置日志。可重复调用,且不创建文件。'
|
|
91
|
+
['Level names: DEBUG INFO WARNING WARN ERROR SILENT, or 0-4.']='级别名:DEBUG INFO WARNING WARN ERROR SILENT,或数字 0-4。'
|
|
92
|
+
['Usage: dsh::log::%1$s']='用法:dsh::log::%1$s'
|
|
93
|
+
['Print the current numeric log level.']='输出当前数字日志级别。'
|
|
94
|
+
['Print the resolved log file path, or nothing for stderr-only logging.']='输出解析后的日志文件路径;仅写 stderr 时不输出。'
|
|
95
|
+
['Usage: dsh::log::%1$s <message...>']='用法:dsh::log::%1$s <消息...>'
|
|
96
|
+
['Write one leveled line to the log file (if configured) and stderr.']='向日志文件(如已配置)和 stderr 各写一行分级日志。'
|
|
97
|
+
['dsh::log: no help for %1$s']='dsh::log:没有 %1$s 的帮助信息'
|
|
98
|
+
|
|
99
|
+
# log.sh diagnostics
|
|
100
|
+
['dsh::log: --name requires a value']='dsh::log:--name 缺少取值'
|
|
101
|
+
['dsh::log: --dir requires a value']='dsh::log:--dir 缺少取值'
|
|
102
|
+
['dsh::log: --file requires a value']='dsh::log:--file 缺少取值'
|
|
103
|
+
['dsh::log: --level requires a value']='dsh::log:--level 缺少取值'
|
|
104
|
+
['dsh::log: unknown option: %1$s']='dsh::log:未知选项:%1$s'
|
|
105
|
+
['dsh::log: invalid level: %1$s']='dsh::log:无效级别:%1$s'
|
|
106
|
+
['dsh::log: cannot write log file %1$s; using stderr only']='dsh::log:无法写入日志文件 %1$s;改为仅写 stderr'
|
|
107
|
+
|
|
108
|
+
# cli.sh help and diagnostics
|
|
109
|
+
['Usage: dsh::cli::spec <name> [--help]']='用法:dsh::cli::spec <名称> [--help]'
|
|
110
|
+
['Create or reset a named option spec. No filesystem access.']='创建或重置一个命名的选项规格。不访问文件系统。'
|
|
111
|
+
['Usage: dsh::cli::flag <spec> <name> [--short S] [--into VAR] [--help MSGID]']='用法:dsh::cli::flag <规格> <名称> [--short 短名] [--into 变量] [--help 消息]'
|
|
112
|
+
['Declare a boolean option; parsing writes true into VAR.']='声明一个布尔选项;解析时把 true 写入变量。'
|
|
113
|
+
['Usage: dsh::cli::value <spec> <name> [--short S] [--into VAR] [--required] [--check FN] [--default D] [--help MSGID]']='用法:dsh::cli::value <规格> <名称> [--short 短名] [--into 变量] [--required] [--check 校验函数] [--default 默认值] [--help 消息]'
|
|
114
|
+
['Declare an option that requires a value. FN is a caller-supplied validator.']='声明一个必须带值的选项。FN 是调用方提供的校验函数。'
|
|
115
|
+
['Usage: dsh::cli::optional_value <spec> <name> [--into VAR] [--default D] [--help MSGID]']='用法:dsh::cli::optional_value <规格> <名称> [--into 变量] [--default 默认值] [--help 消息]'
|
|
116
|
+
['Declare an option whose value is optional; use --default when absent.']='声明一个值可选的选项;缺省时使用 --default 指定的默认值。'
|
|
117
|
+
['Usage: dsh::cli::mutex <spec> <name1> <name2> [...]']='用法:dsh::cli::mutex <规格> <名称1> <名称2> [...]'
|
|
118
|
+
['Declare a mutually exclusive group. Repeated calls add groups.']='声明一个互斥组。重复调用可添加多组。'
|
|
119
|
+
['Usage: dsh::cli::help <spec>']='用法:dsh::cli::help <规格>'
|
|
120
|
+
['Print the generated help table for a spec to stdout.']='把规格生成的帮助表输出到 stdout。'
|
|
121
|
+
['Usage: dsh::cli::run <spec> [--] <args...>']='用法:dsh::cli::run <规格> [--] <参数...>'
|
|
122
|
+
['Parse arguments by spec. Returns 2 on help or usage errors; never exits.']='按规格解析参数。请求帮助或用法错误时返回码 2;绝不退出进程。'
|
|
123
|
+
['Usage: dsh::cli::remaining_append <array-name>']='用法:dsh::cli::remaining_append <数组名>'
|
|
124
|
+
['Append DSH_CLI_REMAINING to a caller-owned array via nameref.']='通过 nameref 把 DSH_CLI_REMAINING 追加到调用方的数组中。'
|
|
125
|
+
['dsh::cli: no help for %1$s']='dsh::cli:没有 %1$s 的帮助信息'
|
|
126
|
+
['Usage: dsh::cli::spec <name>']='用法:dsh::cli::spec <名称>'
|
|
127
|
+
['Usage: dsh::cli::flag <spec> <name> [options]']='用法:dsh::cli::flag <规格> <名称> [选项]'
|
|
128
|
+
['Usage: dsh::cli::value <spec> <name> [options]']='用法:dsh::cli::value <规格> <名称> [选项]'
|
|
129
|
+
['Usage: dsh::cli::optional_value <spec> <name> [options]']='用法:dsh::cli::optional_value <规格> <名称> [选项]'
|
|
130
|
+
['Usage: %1$s [options] [-- <passthrough...>]']='用法:%1$s [选项] [-- <透传参数...>]'
|
|
131
|
+
['dsh::cli: invalid spec name: %1$s']='dsh::cli:无效的规格名:%1$s'
|
|
132
|
+
['dsh::cli: --short requires a value']='dsh::cli:--short 缺少取值'
|
|
133
|
+
['dsh::cli: --into requires a value']='dsh::cli:--into 缺少取值'
|
|
134
|
+
['dsh::cli: --check requires a value']='dsh::cli:--check 缺少取值'
|
|
135
|
+
['dsh::cli: --default requires a value']='dsh::cli:--default 缺少取值'
|
|
136
|
+
['dsh::cli: --help requires a value']='dsh::cli:--help 缺少取值'
|
|
137
|
+
['dsh::cli: unknown option: %1$s']='dsh::cli:未知选项:%1$s'
|
|
138
|
+
['dsh::cli: invalid option name: %1$s']='dsh::cli:无效的选项名:%1$s'
|
|
139
|
+
['dsh::cli: invalid target variable: %1$s']='dsh::cli:无效的目标变量:%1$s'
|
|
140
|
+
['dsh::cli: invalid short name: %1$s']='dsh::cli:无效的短名:%1$s'
|
|
141
|
+
['dsh::cli: --check is only valid for value options']='dsh::cli:--check 仅适用于必须带值的选项'
|
|
142
|
+
['dsh::cli: option already declared: %1$s']='dsh::cli:选项已声明:%1$s'
|
|
143
|
+
['dsh::cli: short name already declared: %1$s']='dsh::cli:短名已声明:%1$s'
|
|
144
|
+
['dsh::cli::mutex requires a spec and at least two names']='dsh::cli::mutex 需要一个规格名和至少两个选项名'
|
|
145
|
+
['dsh::cli: option not declared: %1$s']='dsh::cli:选项未声明:%1$s'
|
|
146
|
+
['dsh::cli: unknown spec: %1$s']='dsh::cli:未知规格:%1$s'
|
|
147
|
+
['dsh::cli: check function not found: %1$s']='dsh::cli:找不到校验函数:%1$s'
|
|
148
|
+
['dsh::cli: invalid value for --%1$s: %2$s']='dsh::cli:--%1$s 的取值无效:%2$s'
|
|
149
|
+
['dsh::cli: mutually exclusive options: %1$s']='dsh::cli:互斥选项:%1$s'
|
|
150
|
+
['dsh::cli: missing value for --%1$s']='dsh::cli:--%1$s 缺少取值'
|
|
151
|
+
['dsh::cli: missing value for -%1$s']='dsh::cli:-%1$s 缺少取值'
|
|
152
|
+
['dsh::cli: missing required option: --%1$s']='dsh::cli:缺少必需的选项:--%1$s'
|
|
153
|
+
|
|
154
|
+
# file.sh help
|
|
155
|
+
['Usage: dsh::file::size <file>']='用法:dsh::file::size <文件>'
|
|
156
|
+
['Print the size of <file> in bytes. Returns 1 when missing.']='输出 <文件> 的字节数;文件不存在时返回码 1。'
|
|
157
|
+
['Usage: dsh::file::count <dir> [pattern]']='用法:dsh::file::count <目录> [模式]'
|
|
158
|
+
['Count files under <dir>, optionally filtered by name pattern.']='统计 <目录> 下的文件数,可按名称模式过滤。'
|
|
159
|
+
['Usage: dsh::file::is_empty <dir>']='用法:dsh::file::is_empty <目录>'
|
|
160
|
+
['Return 0 when <dir> has no entries, 2 when unreadable.']='<目录> 为空时返回 0,不可读时返回 2。'
|
|
161
|
+
['Usage: dsh::file::atomic_write <target>']='用法:dsh::file::atomic_write <目标文件>'
|
|
162
|
+
['Write stdin to <target> via a same-directory temp file, then rename.']='把标准输入写入同目录临时文件,再原子替换 <目标文件>。'
|
|
163
|
+
['Usage: dsh::file::temp_dir [prefix]']='用法:dsh::file::temp_dir [前缀]'
|
|
164
|
+
['Create a temp directory under DARWIN_SH_TMPDIR and print its path.']='在 DARWIN_SH_TMPDIR 下创建临时目录并输出其路径。'
|
|
165
|
+
['Usage: dsh::file::prune_stale <dir> <days> [--name PATTERN] [--dry-run]']='用法:dsh::file::prune_stale <目录> <天数> [--name 模式] [--dry-run]'
|
|
166
|
+
['Delete entries under <dir> older than <days>, optionally by name pattern.']='删除 <目录> 下早于 <天数> 的条目,可按名称模式过滤。'
|
|
167
|
+
['dsh::file: no help for %1$s']='dsh::file:没有 %1$s 的帮助信息'
|
|
168
|
+
|
|
169
|
+
# file.sh diagnostics
|
|
170
|
+
['dsh::file::%1$s: missing argument']='dsh::file::%1$s:缺少参数'
|
|
171
|
+
['dsh::file::%1$s: expected 1 or 2 arguments']='dsh::file::%1$s:应为 1 或 2 个参数'
|
|
172
|
+
['dsh::file::%1$s: cannot read directory: %2$s']='dsh::file::%1$s:无法读取目录:%2$s'
|
|
173
|
+
['dsh::file::size: not found: %1$s']='dsh::file::size:未找到:%1$s'
|
|
174
|
+
['dsh::file::size: cannot stat: %1$s']='dsh::file::size:无法获取大小:%1$s'
|
|
175
|
+
['dsh::file::atomic_write: invalid target: %1$s']='dsh::file::atomic_write:无效目标:%1$s'
|
|
176
|
+
['dsh::file::%1$s: cannot write directory: %2$s']='dsh::file::%1$s:无法写入目录:%2$s'
|
|
177
|
+
['dsh::file::%1$s: cannot create temp file in: %2$s']='dsh::file::%1$s:无法在以下目录创建临时文件:%2$s'
|
|
178
|
+
['dsh::file::%1$s: failed to write temp file for: %2$s']='dsh::file::%1$s:写入临时文件失败:%2$s'
|
|
179
|
+
['dsh::file::%1$s: failed to replace: %2$s']='dsh::file::%1$s:替换失败:%2$s'
|
|
180
|
+
['dsh::file::%1$s: too many arguments']='dsh::file::%1$s:参数过多'
|
|
181
|
+
['dsh::file::temp_dir: invalid prefix: %1$s']='dsh::file::temp_dir:无效前缀:%1$s'
|
|
182
|
+
['dsh::file::temp_dir: cannot create under: %1$s']='dsh::file::temp_dir:无法在以下位置创建:%1$s'
|
|
183
|
+
['dsh::file::prune_stale: expected <dir> <days> [options]']='dsh::file::prune_stale:应为 <目录> <天数> [选项]'
|
|
184
|
+
['dsh::file::prune_stale: days must be a non-negative integer: %1$s']='dsh::file::prune_stale:天数必须是非负整数:%1$s'
|
|
185
|
+
['dsh::file::prune_stale: --name requires a value']='dsh::file::prune_stale:--name 缺少取值'
|
|
186
|
+
['dsh::file::prune_stale: unknown option: %1$s']='dsh::file::prune_stale:未知选项:%1$s'
|
|
187
|
+
|
|
188
|
+
# json.sh help
|
|
189
|
+
['Usage: dsh::json::valid <file>']='用法:dsh::json::valid <文件>'
|
|
190
|
+
['Return 0 when <file> contains valid JSON, 2 when missing.']='<文件> 含合法 JSON 时返回 0,文件缺失时返回 2。'
|
|
191
|
+
['Usage: dsh::json::exists <file>']='用法:dsh::json::exists <文件>'
|
|
192
|
+
['Return 0 when <file> exists and is non-empty. No jq dependency.']='<文件> 存在且非空时返回 0,不依赖 jq。'
|
|
193
|
+
['Usage: dsh::json::get <file> <filter> [--default V]']='用法:dsh::json::get <文件> <过滤器> [--default 值]'
|
|
194
|
+
['Print a jq -r result; empty or null results fall back to --default.']='输出 jq -r 结果;空结果或 null 时回退到 --default。'
|
|
195
|
+
['Usage: dsh::json::get_raw <file> <filter>']='用法:dsh::json::get_raw <文件> <过滤器>'
|
|
196
|
+
['Print the raw jq result, preserving JSON types.']='输出 jq 原始结果,保留 JSON 类型。'
|
|
197
|
+
['Usage: dsh::json::jq']='用法:dsh::json::jq'
|
|
198
|
+
['Print the jq command selected by core::tool.']='输出 core::tool 选定的 jq 命令。'
|
|
199
|
+
['Usage: dsh::json::set <file> <filter> [--arg K=V] [--argjson K=V]...']='用法:dsh::json::set <文件> <过滤器> [--arg K=V] [--argjson K=V]...'
|
|
200
|
+
['Apply a jq filter and atomically replace <file> with the result.']='应用 jq 过滤器,并把结果原子替换到 <文件>。'
|
|
201
|
+
['dsh::json: no help for %1$s']='dsh::json:没有 %1$s 的帮助信息'
|
|
202
|
+
|
|
203
|
+
# json.sh diagnostics
|
|
204
|
+
['dsh::json::%1$s: missing argument']='dsh::json::%1$s:缺少参数'
|
|
205
|
+
['dsh::json::%1$s: expected <file> <filter>']='dsh::json::%1$s:应为 <文件> <过滤器>'
|
|
206
|
+
['dsh::json::%1$s: file not found: %2$s']='dsh::json::%1$s:未找到文件:%2$s'
|
|
207
|
+
['dsh::json::%1$s: invalid JSON: %2$s']='dsh::json::%1$s:JSON 无效:%2$s'
|
|
208
|
+
['dsh::json::%1$s: jq failed for: %2$s']='dsh::json::%1$s:jq 处理失败:%2$s'
|
|
209
|
+
['dsh::json::%1$s: unknown option: %2$s']='dsh::json::%1$s:未知选项:%2$s'
|
|
210
|
+
['dsh::json::get: --default requires a value']='dsh::json::get:--default 缺少取值'
|
|
211
|
+
['dsh::json::set: expected <file> <filter> [options]']='dsh::json::set:应为 <文件> <过滤器> [选项]'
|
|
212
|
+
['dsh::json::set: %1$s requires K=V']='dsh::json::set:%1$s 需要 K=V 形式'
|
|
213
|
+
['dsh::json::set: invalid argument name: %1$s']='dsh::json::set:无效参数名:%1$s'
|
|
214
|
+
['dsh::json::set: filter produced no output']='dsh::json::set:过滤器没有输出'
|
|
215
|
+
|
|
216
|
+
# datetime.sh help
|
|
217
|
+
['Usage: dsh::datetime::now']='用法:dsh::datetime::now'
|
|
218
|
+
['Print the current epoch seconds; DARWIN_SH_NOW overrides the clock.']='输出当前 epoch 秒数;DARWIN_SH_NOW 可覆盖时钟。'
|
|
219
|
+
['Usage: dsh::datetime::today [compact|standard]']='用法:dsh::datetime::today [compact|standard]'
|
|
220
|
+
['Print today as YYYY-MM-DD, or compact YYYYMMDD.']='以 YYYY-MM-DD 输出今天,或 compact 格式 YYYYMMDD。'
|
|
221
|
+
['Usage: dsh::datetime::stamp']='用法:dsh::datetime::stamp'
|
|
222
|
+
['Print the current local time as YYYY-MM-DD HH:MM:SS.']='以 YYYY-MM-DD HH:MM:SS 输出当前本地时间。'
|
|
223
|
+
['Usage: dsh::datetime::%1$s <date>']='用法:dsh::datetime::%1$s <日期>'
|
|
224
|
+
['Convert YYYY-MM-DD to YYYYMMDD; already-compact input passes through.']='把 YYYY-MM-DD 转为 YYYYMMDD;已是紧凑格式则原样输出。'
|
|
225
|
+
['Convert YYYYMMDD to YYYY-MM-DD; already-standard input passes through.']='把 YYYYMMDD 转为 YYYY-MM-DD;已是标准格式则原样输出。'
|
|
226
|
+
['Normalize a date to YYYY-MM-DD; reject malformed input with code 2.']='把日期规范为 YYYY-MM-DD;格式错误时返回码 2。'
|
|
227
|
+
['Usage: dsh::datetime::valid <date>']='用法:dsh::datetime::valid <日期>'
|
|
228
|
+
['Return 0 when <date> is a real calendar date, 1 otherwise.']='<日期> 是真实日历日期时返回 0,否则返回 1。'
|
|
229
|
+
['Usage: dsh::datetime::compare <a> <b>']='用法:dsh::datetime::compare <日期A> <日期B>'
|
|
230
|
+
['Print -1, 0 or 1 after normalizing both dates.']='两个日期规范化后输出 -1、0 或 1。'
|
|
231
|
+
['Usage: dsh::datetime::add <date> <+N unit|-N unit>']='用法:dsh::datetime::add <日期> <+N 单位|-N 单位>'
|
|
232
|
+
['Add or subtract days, weeks, months or years; print YYYY-MM-DD.']='加减天、周、月或年,输出 YYYY-MM-DD。'
|
|
233
|
+
['Usage: dsh::datetime::month_range <YYYY-MM>']='用法:dsh::datetime::month_range <YYYY-MM>'
|
|
234
|
+
['Print the first and last day of a month as two YYYY-MM-DD lines.']='以两行 YYYY-MM-DD 输出某月的第一天和最后一天。'
|
|
235
|
+
['dsh::datetime: no help for %1$s']='dsh::datetime:没有 %1$s 的帮助信息'
|
|
236
|
+
|
|
237
|
+
# datetime.sh diagnostics
|
|
238
|
+
['dsh::datetime::%1$s: too many arguments']='dsh::datetime::%1$s:参数过多'
|
|
239
|
+
['dsh::datetime::%1$s: missing argument']='dsh::datetime::%1$s:缺少参数'
|
|
240
|
+
['dsh::datetime::%1$s: expected <a> <b>']='dsh::datetime::%1$s:应为 <日期A> <日期B>'
|
|
241
|
+
['dsh::datetime::%1$s: expected <date> <expr>']='dsh::datetime::%1$s:应为 <日期> <表达式>'
|
|
242
|
+
['dsh::datetime::now: invalid DARWIN_SH_NOW: %1$s']='dsh::datetime::now:无效的 DARWIN_SH_NOW:%1$s'
|
|
243
|
+
['dsh::datetime::today: invalid format: %1$s']='dsh::datetime::today:无效格式:%1$s'
|
|
244
|
+
['dsh::datetime::to_compact: invalid date: %1$s']='dsh::datetime::to_compact:无效日期:%1$s'
|
|
245
|
+
['dsh::datetime::to_standard: invalid date: %1$s']='dsh::datetime::to_standard:无效日期:%1$s'
|
|
246
|
+
['dsh::datetime::normalize: invalid date: %1$s']='dsh::datetime::normalize:无效日期:%1$s'
|
|
247
|
+
['dsh::datetime::add: invalid expression: %1$s']='dsh::datetime::add:无效表达式:%1$s'
|
|
248
|
+
['dsh::datetime::month_range: invalid month: %1$s']='dsh::datetime::month_range:无效月份:%1$s'
|
|
249
|
+
|
|
250
|
+
# lock.sh help
|
|
251
|
+
['Usage: dsh::lock::acquire <name> [--dir DIR] [--timeout SEC] [--into VAR]']='用法:dsh::lock::acquire <名称> [--dir 目录] [--timeout 秒] [--into 变量]'
|
|
252
|
+
['Acquire an exclusive lock; return 7 when another process holds it.']='获取排他锁;被其他进程持有时返回 7。'
|
|
253
|
+
['Usage: dsh::lock::release <fd>|--all']='用法:dsh::lock::release <文件描述符>|--all'
|
|
254
|
+
['Close a lock fd; --all closes every fd acquired by this module.']='关闭锁文件描述符;--all 关闭本模块获取的所有描述符。'
|
|
255
|
+
['Usage: dsh::lock::with_lock <name> [--dir DIR] [--timeout SEC] -- <cmd> [args...]']='用法:dsh::lock::with_lock <名称> [--dir 目录] [--timeout 秒] -- <命令> [参数...]'
|
|
256
|
+
['Run <cmd> under the lock, then release it even when the command fails.']='在锁内运行 <命令>,即使命令失败也会释放锁。'
|
|
257
|
+
['Usage: dsh::lock::prune_stale [days] [--dir DIR] [--dry-run]']='用法:dsh::lock::prune_stale [天数] [--dir 目录] [--dry-run]'
|
|
258
|
+
['Remove old lock files after a flock probe; run only with no concurrent holders.']='经 flock 探测后删除陈旧锁文件;仅在无并发持锁者时运行。'
|
|
259
|
+
['dsh::lock: no help for %1$s']='dsh::lock:没有 %1$s 的帮助信息'
|
|
260
|
+
|
|
261
|
+
# lock.sh diagnostics
|
|
262
|
+
['dsh::lock: --dir requires a value']='dsh::lock:--dir 需要一个值'
|
|
263
|
+
['dsh::lock: --timeout requires a non-negative integer: %1$s']='dsh::lock:--timeout 需要非负整数:%1$s'
|
|
264
|
+
['dsh::lock: --into requires a safe variable name: %1$s']='dsh::lock:--into 需要安全的变量名:%1$s'
|
|
265
|
+
['dsh::lock: unknown option: %1$s']='dsh::lock:未知选项:%1$s'
|
|
266
|
+
['dsh::lock: flock is unavailable; mutual exclusion disabled']='dsh::lock:flock 不可用;互斥已禁用'
|
|
267
|
+
['dsh::lock::acquire: missing <name>']='dsh::lock::acquire:缺少 <名称>'
|
|
268
|
+
['dsh::lock::acquire: invalid name: %1$s']='dsh::lock::acquire:无效名称:%1$s'
|
|
269
|
+
['dsh::lock: cannot create lock directory: %1$s']='dsh::lock:无法创建锁目录:%1$s'
|
|
270
|
+
['dsh::lock: lock directory is not writable: %1$s']='dsh::lock:锁目录不可写:%1$s'
|
|
271
|
+
['dsh::lock: cannot open lock file: %1$s']='dsh::lock:无法打开锁文件:%1$s'
|
|
272
|
+
['dsh::lock::acquire: timed out waiting for: %1$s']='dsh::lock::acquire:等待超时:%1$s'
|
|
273
|
+
['dsh::lock::acquire: already held by another process: %1$s']='dsh::lock::acquire:已被其他进程持有:%1$s'
|
|
274
|
+
['dsh::lock: flock failed for: %1$s']='dsh::lock:flock 失败:%1$s'
|
|
275
|
+
['dsh::lock::release: expected <fd> or --all']='dsh::lock::release:需要 <文件描述符> 或 --all'
|
|
276
|
+
['dsh::lock::release: invalid fd: %1$s']='dsh::lock::release:无效的文件描述符:%1$s'
|
|
277
|
+
['dsh::lock::with_lock: missing <name>']='dsh::lock::with_lock:缺少 <名称>'
|
|
278
|
+
['dsh::lock::with_lock: --into is not supported']='dsh::lock::with_lock:不支持 --into'
|
|
279
|
+
['dsh::lock::with_lock: missing command after --']='dsh::lock::with_lock:-- 后缺少命令'
|
|
280
|
+
['dsh::lock: %1$s requires a value']='dsh::lock:%1$s 需要一个值'
|
|
281
|
+
['dsh::lock::prune_stale: --dir requires a value']='dsh::lock::prune_stale:--dir 需要一个值'
|
|
282
|
+
['dsh::lock::prune_stale: unknown option: %1$s']='dsh::lock::prune_stale:未知选项:%1$s'
|
|
283
|
+
|
|
284
|
+
# process.sh help
|
|
285
|
+
['Usage: dsh::process::parallel --tasks FILE --handler FN [--max-parallel N] [--into VAR]']='用法:dsh::process::parallel --tasks 文件 --handler 函数 [--max-parallel N] [--into 变量]'
|
|
286
|
+
['Run tasks with bounded concurrency; hand the caller a stats associative array.']='以有界并发运行任务,并通过关联数组回传统计信息。'
|
|
287
|
+
['Usage: dsh::process::run_timeout <seconds> [--kill-after SEC] -- <cmd> [args...]']='用法:dsh::process::run_timeout <秒数> [--kill-after 秒] -- <命令> [参数...]'
|
|
288
|
+
['Run a command under a timeout; return 124 when it expires.']='在超时限制下运行命令;超时返回 124。'
|
|
289
|
+
['Usage: dsh::process::spawn [--pid-into VAR] -- <cmd> [args...]']='用法:dsh::process::spawn [--pid-into 变量] -- <命令> [参数...]'
|
|
290
|
+
['Start a background command and hand its PID to the caller.']='在后台启动命令并将进程号回传给调用方。'
|
|
291
|
+
['Usage: dsh::process::alive <pid>']='用法:dsh::process::alive <进程号>'
|
|
292
|
+
['Return 0 when <pid> exists, 1 otherwise. No output.']='进程存在时返回 0,否则返回 1,不输出内容。'
|
|
293
|
+
['Usage: dsh::process::stop <pid> [--grace SEC] [--kill-after SEC]']='用法:dsh::process::stop <进程号> [--grace 秒] [--kill-after 秒]'
|
|
294
|
+
['Send TERM, wait, then KILL if still alive. Never installs a trap.']='先发送 TERM 并等待,仍存活则发送 KILL;绝不安装 trap。'
|
|
295
|
+
['dsh::process: no help for %1$s']='dsh::process:没有 %1$s 的帮助信息'
|
|
296
|
+
|
|
297
|
+
# process.sh diagnostics
|
|
298
|
+
['dsh::process: %1$s requires a value']='dsh::process:%1$s 需要一个值'
|
|
299
|
+
['dsh::process: unknown option: %1$s']='dsh::process:未知选项:%1$s'
|
|
300
|
+
['dsh::process: --into requires a safe variable name: %1$s']='dsh::process:--into 需要安全的变量名:%1$s'
|
|
301
|
+
['dsh::process::parallel: --tasks requires a file']='dsh::process::parallel:--tasks 需要指定文件'
|
|
302
|
+
['dsh::process::parallel: tasks file not found: %1$s']='dsh::process::parallel:任务文件不存在:%1$s'
|
|
303
|
+
['dsh::process::parallel: --handler requires a function name']='dsh::process::parallel:--handler 需要指定函数名'
|
|
304
|
+
['dsh::process::parallel: handler is not a function: %1$s']='dsh::process::parallel:%1$s 不是函数'
|
|
305
|
+
['dsh::process::parallel: --max-parallel requires a positive integer: %1$s']='dsh::process::parallel:--max-parallel 需要正整数:%1$s'
|
|
306
|
+
['dsh::process::parallel: --max-failures requires a non-negative integer: %1$s']='dsh::process::parallel:--max-failures 需要非负整数:%1$s'
|
|
307
|
+
['dsh::process::run_timeout: missing <seconds>']='dsh::process::run_timeout:缺少 <秒数>'
|
|
308
|
+
['dsh::process::run_timeout: invalid seconds: %1$s']='dsh::process::run_timeout:无效秒数:%1$s'
|
|
309
|
+
['dsh::process::run_timeout: --kill-after requires a non-negative integer: %1$s']='dsh::process::run_timeout:--kill-after 需要非负整数:%1$s'
|
|
310
|
+
['dsh::process::run_timeout: missing command after --']='dsh::process::run_timeout:-- 后缺少命令'
|
|
311
|
+
['dsh::process: timeout command unavailable; execution is not bounded']='dsh::process:timeout 命令不可用;执行不受超时限制'
|
|
312
|
+
['dsh::process::spawn: missing command after --']='dsh::process::spawn:-- 后缺少命令'
|
|
313
|
+
['dsh::process::spawn: --pid-into requires a safe variable name: %1$s']='dsh::process::spawn:--pid-into 需要安全的变量名:%1$s'
|
|
314
|
+
['dsh::process::alive: expected <pid>']='dsh::process::alive:需要 <进程号>'
|
|
315
|
+
['dsh::process::alive: invalid pid: %1$s']='dsh::process::alive:无效进程号:%1$s'
|
|
316
|
+
['dsh::process::stop: expected <pid>']='dsh::process::stop:需要 <进程号>'
|
|
317
|
+
['dsh::process::stop: invalid pid: %1$s']='dsh::process::stop:无效进程号:%1$s'
|
|
318
|
+
['dsh::process::stop: %1$s requires a non-negative integer: %2$s']='dsh::process::stop:%1$s 需要非负整数:%2$s'
|
|
319
|
+
['Usage: dsh::sched::run --mode flat|grouped|nested --handler FN [options]']='用法:dsh::sched::run --mode flat|grouped|nested --handler FN [选项]'
|
|
320
|
+
['Schedule structured tasks; flat and grouped delegate concurrency to dsh::process::parallel.']='调度结构化任务;flat 与 grouped 模式将并发控制委托给 dsh::process::parallel。'
|
|
321
|
+
['dsh::sched: %1$s requires a value']='dsh::sched:%1$s 需要一个值'
|
|
322
|
+
['dsh::sched: %1$s requires a non-negative integer: %2$s']='dsh::sched:%1$s 需要非负整数:%2$s'
|
|
323
|
+
['dsh::sched: unknown option: %1$s']='dsh::sched:未知选项:%1$s'
|
|
324
|
+
['dsh::sched::run: --mode must be flat, grouped or nested: %1$s']='dsh::sched::run:--mode 必须是 flat、grouped 或 nested:%1$s'
|
|
325
|
+
['dsh::sched::run: --handler is not a function: %1$s']='dsh::sched::run:--handler 不是函数:%1$s'
|
|
326
|
+
['dsh::sched::run: --into requires a safe variable name: %1$s']='dsh::sched::run:--into 需要安全的变量名:%1$s'
|
|
327
|
+
['dsh::sched::run: flat mode requires --items']='dsh::sched::run:flat 模式需要 --items'
|
|
328
|
+
['dsh::sched::run: grouped mode requires --groups']='dsh::sched::run:grouped 模式需要 --groups'
|
|
329
|
+
['dsh::sched::run: nested mode requires --outers and --middles']='dsh::sched::run:nested 模式需要 --outers 和 --middles'
|
|
330
|
+
['dsh::sched::run: nested mode requires --items or --inner-provider']='dsh::sched::run:nested 模式需要 --items 或 --inner-provider'
|
|
331
|
+
['dsh::sched::run: --inner-provider is not a function: %1$s']='dsh::sched::run:--inner-provider 不是函数:%1$s'
|
|
332
|
+
['dsh::sched::run: input file not found: %1$s']='dsh::sched::run:找不到输入文件:%1$s'
|
|
333
|
+
['Usage: dsh::checkpoint::configure --root DIR --layout TEMPLATE [--done-prefix P] [--empty-prefix P] [--fail-prefix P] [--skip-prefix P]']='用法:dsh::checkpoint::configure --root 目录 --layout 模板 [--done-prefix 前缀] [--empty-prefix 前缀] [--fail-prefix 前缀] [--skip-prefix 前缀]'
|
|
334
|
+
['Set the checkpoint root, path layout and state file prefixes.']='设置断点根目录、路径布局与状态文件前缀。'
|
|
335
|
+
['Usage: dsh::checkpoint::path key=value [key=value...]']='用法:dsh::checkpoint::path 键=值 [键=值...]'
|
|
336
|
+
['Expand the configured layout into a base marker path.']='按配置的布局展开为基础标记路径。'
|
|
337
|
+
['Usage: dsh::checkpoint::state <path>']='用法:dsh::checkpoint::state <路径>'
|
|
338
|
+
['Print done, empty, fail, skip or none for a base marker path.']='输出基础标记路径的状态:done、empty、fail、skip 或 none。'
|
|
339
|
+
['Usage: dsh::checkpoint::mark <path> <done|empty|fail|skip> [--json JSON]']='用法:dsh::checkpoint::mark <路径> <done|empty|fail|skip> [--json JSON]'
|
|
340
|
+
['Atomically publish one state marker and clear the other three.']='原子发布一种状态标记,并清除另外三种。'
|
|
341
|
+
['Usage: dsh::checkpoint::read <path> [--state STATE]']='用法:dsh::checkpoint::read <路径> [--state 状态]'
|
|
342
|
+
['Print marker JSON verbatim; no schema or field interpretation.']='原样输出标记的 JSON;不解析结构、不解释字段。'
|
|
343
|
+
['Usage: dsh::checkpoint::clear <path> [--state STATE]']='用法:dsh::checkpoint::clear <路径> [--state 状态]'
|
|
344
|
+
['Remove markers for a base path, or only one state.']='删除基础路径的全部标记,或仅删除指定状态。'
|
|
345
|
+
['dsh::checkpoint: no help for %1$s']='dsh::checkpoint:没有 %1$s 的帮助'
|
|
346
|
+
['dsh::checkpoint: %1$s requires a value']='dsh::checkpoint:%1$s 需要一个值'
|
|
347
|
+
['dsh::checkpoint: unknown option: %1$s']='dsh::checkpoint:未知选项:%1$s'
|
|
348
|
+
['dsh::checkpoint::configure: --root requires a directory']='dsh::checkpoint::configure:--root 需要一个目录'
|
|
349
|
+
['dsh::checkpoint::configure: --layout requires a template']='dsh::checkpoint::configure:--layout 需要一个模板'
|
|
350
|
+
['dsh::checkpoint::configure: prefix must not contain a path separator: %1$s']='dsh::checkpoint::configure:前缀不能包含路径分隔符:%1$s'
|
|
351
|
+
['dsh::checkpoint::configure: empty layout placeholder']='dsh::checkpoint::configure:布局中有空的占位符'
|
|
352
|
+
['dsh::checkpoint::configure: invalid layout placeholder: %1$s']='dsh::checkpoint::configure:无效的布局占位符:%1$s'
|
|
353
|
+
['dsh::checkpoint::configure: --layout needs at least one <placeholder>']='dsh::checkpoint::configure:--layout 至少需要一个 <占位符>'
|
|
354
|
+
['dsh::checkpoint: configure must be called first']='dsh::checkpoint:必须先调用 configure'
|
|
355
|
+
['dsh::checkpoint::path: expected key=value: %1$s']='dsh::checkpoint::path:需要 键=值 形式:%1$s'
|
|
356
|
+
['dsh::checkpoint::path: invalid key: %1$s']='dsh::checkpoint::path:无效的键:%1$s'
|
|
357
|
+
['dsh::checkpoint::path: missing value for %1$s']='dsh::checkpoint::path:缺少 %1$s 的值'
|
|
358
|
+
['dsh::checkpoint::state: expected <path>']='dsh::checkpoint::state:需要 <路径>'
|
|
359
|
+
['dsh::checkpoint::mark: expected <path> <state>']='dsh::checkpoint::mark:需要 <路径> <状态>'
|
|
360
|
+
['dsh::checkpoint::mark: invalid state: %1$s']='dsh::checkpoint::mark:无效状态:%1$s'
|
|
361
|
+
['dsh::checkpoint::mark: cannot create directory: %1$s']='dsh::checkpoint::mark:无法创建目录:%1$s'
|
|
362
|
+
['dsh::checkpoint::mark: cannot clear marker: %1$s']='dsh::checkpoint::mark:无法清除标记:%1$s'
|
|
363
|
+
['dsh::checkpoint::read: expected <path>']='dsh::checkpoint::read:需要 <路径>'
|
|
364
|
+
['dsh::checkpoint::read: no marker for %1$s']='dsh::checkpoint::read:%1$s 没有标记'
|
|
365
|
+
['dsh::checkpoint::read: invalid state: %1$s']='dsh::checkpoint::read:无效状态:%1$s'
|
|
366
|
+
['dsh::checkpoint::read: marker not found: %1$s']='dsh::checkpoint::read:找不到标记:%1$s'
|
|
367
|
+
['dsh::checkpoint::clear: expected <path>']='dsh::checkpoint::clear:需要 <路径>'
|
|
368
|
+
['dsh::checkpoint::clear: invalid state: %1$s']='dsh::checkpoint::clear:无效状态:%1$s'
|
|
369
|
+
['dsh::checkpoint::clear: cannot remove marker: %1$s']='dsh::checkpoint::clear:无法删除标记:%1$s'
|
|
370
|
+
['Usage: dsh::stats::init [--dims "a,b,c"]']='用法:dsh::stats::init [--dims "甲,乙,丙"]'
|
|
371
|
+
['Reset private counters, lists and messages without touching the filesystem.']='重置私有的计数器、列表和消息,不触碰文件系统。'
|
|
372
|
+
['Usage: dsh::stats::record <dim> [n]']='用法:dsh::stats::record <维度> [数值]'
|
|
373
|
+
['Add n (default 1) to a named counter; no rc or business semantics.']='给指定计数器加上数值(默认 1);不解释退出码或业务语义。'
|
|
374
|
+
['Usage: dsh::stats::add <dim> <n>']='用法:dsh::stats::add <维度> <数值>'
|
|
375
|
+
['Add an integer to a named counter.']='给指定计数器加上一个整数。'
|
|
376
|
+
['Usage: dsh::stats::list <name> <item>...']='用法:dsh::stats::list <名称> <条目>...'
|
|
377
|
+
['Append string items to a named list.']='向指定列表追加字符串条目。'
|
|
378
|
+
['Usage: dsh::stats::message <level> <text>']='用法:dsh::stats::message <级别> <文本>'
|
|
379
|
+
['Append a message under a named level.']='在指定级别下追加一条消息。'
|
|
380
|
+
['Usage: dsh::stats::get <dim>']='用法:dsh::stats::get <维度>'
|
|
381
|
+
['Print the current value of a counter.']='输出计数器的当前值。'
|
|
382
|
+
['Usage: dsh::stats::result [--into VAR]']='用法:dsh::stats::result [--into 变量]'
|
|
383
|
+
['Return a flat associative array of counter.*, list.* and msg.* keys.']='回传一个扁平关联数组,键为 counter.*、list.* 和 msg.*。'
|
|
384
|
+
['Usage: dsh::stats::flush <dir>']='用法:dsh::stats::flush <目录>'
|
|
385
|
+
['Atomically write this process stats as <BASHPID>.stats using NUL records.']='用 NUL 分隔记录,将本进程统计原子写为 <BASHPID>.stats。'
|
|
386
|
+
['Usage: dsh::stats::merge <dir>']='用法:dsh::stats::merge <目录>'
|
|
387
|
+
['Merge every *.stats file into local state and remove merged files.']='把每个 *.stats 文件合并到本地状态,并删除已合并的文件。'
|
|
388
|
+
['Usage: dsh::stats::dump_json <file> [--started N] [--finished N] [--exit-code N] [--stage S]']='用法:dsh::stats::dump_json <文件> [--started 数值] [--finished 数值] [--exit-code 数值] [--stage 字符串]'
|
|
389
|
+
['Atomically export counters, lists and messages as JSON via jq.']='通过 jq 将计数器、列表和消息原子导出为 JSON。'
|
|
390
|
+
['dsh::stats: no help for %1$s']='dsh::stats:没有 %1$s 的帮助'
|
|
391
|
+
['dsh::stats: --dims requires a value']='dsh::stats:--dims 需要一个值'
|
|
392
|
+
['dsh::stats: unknown option: %1$s']='dsh::stats:未知选项:%1$s'
|
|
393
|
+
['dsh::stats: %1$s requires a value']='dsh::stats:%1$s 需要一个值'
|
|
394
|
+
['dsh::stats::init: invalid dimension name: %1$s']='dsh::stats::init:无效的维度名:%1$s'
|
|
395
|
+
['dsh::stats::init: --dims must not be empty']='dsh::stats::init:--dims 不能为空'
|
|
396
|
+
['dsh::stats::record: expected <dim>']='dsh::stats::record:需要 <维度>'
|
|
397
|
+
['dsh::stats::record: invalid dimension name: %1$s']='dsh::stats::record:无效的维度名:%1$s'
|
|
398
|
+
['dsh::stats::record: value must be an integer: %1$s']='dsh::stats::record:数值必须是整数:%1$s'
|
|
399
|
+
['dsh::stats::add: expected <dim> <n>']='dsh::stats::add:需要 <维度> <数值>'
|
|
400
|
+
['dsh::stats::list: expected <name> <item>...']='dsh::stats::list:需要 <名称> <条目>...'
|
|
401
|
+
['dsh::stats::list: invalid list name: %1$s']='dsh::stats::list:无效的列表名:%1$s'
|
|
402
|
+
['dsh::stats::message: expected <level> <text>']='dsh::stats::message:需要 <级别> <文本>'
|
|
403
|
+
['dsh::stats::message: invalid level: %1$s']='dsh::stats::message:无效的级别:%1$s'
|
|
404
|
+
['dsh::stats::get: expected <dim>']='dsh::stats::get:需要 <维度>'
|
|
405
|
+
['dsh::stats::get: invalid dimension name: %1$s']='dsh::stats::get:无效的维度名:%1$s'
|
|
406
|
+
['dsh::stats::result: --into is required']='dsh::stats::result:必须提供 --into'
|
|
407
|
+
['dsh::stats::result: --into requires a safe variable name: %1$s']='dsh::stats::result:--into 需要安全的变量名:%1$s'
|
|
408
|
+
['dsh::stats::flush: expected <dir>']='dsh::stats::flush:需要 <目录>'
|
|
409
|
+
['dsh::stats::flush: cannot create directory: %1$s']='dsh::stats::flush:无法创建目录:%1$s'
|
|
410
|
+
['dsh::stats::merge: expected <dir>']='dsh::stats::merge:需要 <目录>'
|
|
411
|
+
['dsh::stats::merge: invalid counter in %1$s: %2$s']='dsh::stats::merge:%1$s 中有无效计数器:%2$s'
|
|
412
|
+
['dsh::stats::merge: unknown record in %1$s: %2$s']='dsh::stats::merge:%1$s 中有未知记录:%2$s'
|
|
413
|
+
['dsh::stats::merge: cannot remove merged file: %1$s']='dsh::stats::merge:无法删除已合并文件:%1$s'
|
|
414
|
+
['dsh::stats::dump_json: expected <file>']='dsh::stats::dump_json:需要 <文件>'
|
|
415
|
+
['dsh::stats::dump_json: numeric option requires an integer: %1$s']='dsh::stats::dump_json:数值选项需要整数:%1$s'
|
|
416
|
+
['dsh::stats::dump_json: jq command unavailable']='dsh::stats::dump_json:缺少 jq 命令'
|
|
417
|
+
['dsh::stats::dump_json: jq failed to build JSON']='dsh::stats::dump_json:jq 构建 JSON 失败'
|
|
418
|
+
['Usage: dsh::notify::configure [--max-chars N] [--head-lines N] [--tail-lines N] [--label KEY=TEXT]...']='用法:dsh::notify::configure [--max-chars N] [--head-lines N] [--tail-lines N] [--label KEY=TEXT]...'
|
|
419
|
+
['Set rendering limits and custom labels; 0 means unlimited characters.']='设置渲染上限与自定义标签;0 表示字符数不限。'
|
|
420
|
+
['Usage: dsh::notify::transport::register <name> <func> [--limit N]']='用法:dsh::notify::transport::register <name> <func> [--limit N]'
|
|
421
|
+
['Register a transport that reads the message from stdin; N=0 means no cap.']='注册从 stdin 读取消息的传输通道;N=0 表示不设上限。'
|
|
422
|
+
['Usage: dsh::notify::formatter::register <event> <func>']='用法:dsh::notify::formatter::register <event> <func>'
|
|
423
|
+
['Register func <event> <counters_name> <lists_name> <msgs_name> for an event.']='为事件注册 func <event> <counters_name> <lists_name> <msgs_name>。'
|
|
424
|
+
['Usage: dsh::notify::render <event> [key=value|list:key=value|msg:level=text]...']='用法:dsh::notify::render <event> [key=value|list:key=value|msg:level=text]...'
|
|
425
|
+
['Render a message to stdout without sending it.']='仅渲染消息到 stdout,不发送。'
|
|
426
|
+
['Usage: dsh::notify::send <event> [--transport NAME] [protocol args...]']='用法:dsh::notify::send <event> [--transport NAME] [协议参数...]'
|
|
427
|
+
['Render, apply the transport cap and dispatch through a registered transport.']='渲染消息、应用通道上限并通过已注册通道发送。'
|
|
428
|
+
['Usage: dsh::notify::from_result <array_name> [--event EVENT] [--transport NAME]']='用法:dsh::notify::from_result <array_name> [--event EVENT] [--transport NAME]'
|
|
429
|
+
['Convert a flat stats::result array into the notify protocol and send it.']='把 stats::result 扁平数组转换为通知协议并发送。'
|
|
430
|
+
['dsh::notify: no help for %1$s']='dsh::notify:没有 %1$s 的帮助'
|
|
431
|
+
['dsh::notify: completed']='完成'
|
|
432
|
+
['dsh::notify: interrupted']='已中断'
|
|
433
|
+
['dsh::notify: failed']='失败'
|
|
434
|
+
['dsh::notify: lock failed']='锁失败'
|
|
435
|
+
['dsh::notify: omitted %1$s lines']='……省略 %1$s 行'
|
|
436
|
+
['dsh::notify: truncated']='…截断…'
|
|
437
|
+
['dsh::notify: Status: %1$s']='dsh::notify:状态:%1$s'
|
|
438
|
+
['dsh::notify: Duration: %1$s']='dsh::notify:耗时:%1$s'
|
|
439
|
+
['dsh::notify: Exit code: %1$s']='dsh::notify:退出码:%1$s'
|
|
440
|
+
['dsh::notify: Counters:']='dsh::notify:计数:'
|
|
441
|
+
['dsh::notify: Report: %1$s']='dsh::notify:报告:%1$s'
|
|
442
|
+
['dsh::notify: expected <array_name>']='dsh::notify:需要 <数组名>'
|
|
443
|
+
['dsh::notify: expected <event>']='dsh::notify:需要 <事件>'
|
|
444
|
+
['dsh::notify: expected <event> <func>']='dsh::notify:需要 <事件> <函数>'
|
|
445
|
+
['dsh::notify: expected <name> <func>']='dsh::notify:需要 <名称> <函数>'
|
|
446
|
+
['dsh::notify: expected a non-negative integer: %1$s']='dsh::notify:需要非负整数:%1$s'
|
|
447
|
+
['dsh::notify: invalid label: %1$s']='dsh::notify:无效标签:%1$s'
|
|
448
|
+
['dsh::notify: invalid name: %1$s']='dsh::notify:无效名称:%1$s'
|
|
449
|
+
['dsh::notify: invalid option: %1$s']='dsh::notify:无效选项:%1$s'
|
|
450
|
+
['dsh::notify: no transport registered']='dsh::notify:未注册传输通道'
|
|
451
|
+
['dsh::notify: transport required; use --transport NAME']='dsh::notify:请通过 --transport NAME 指定传输通道'
|
|
452
|
+
['dsh::notify: option requires a value: %1$s']='dsh::notify:%1$s 需要取值'
|
|
453
|
+
['dsh::notify: transport requires a function: %1$s']='dsh::notify:%1$s 需要函数'
|
|
454
|
+
['dsh::notify: unknown transport: %1$s']='dsh::notify:未知传输通道:%1$s'
|
|
455
|
+
['dsh::notify: unsafe variable name: %1$s']='dsh::notify:不安全的变量名:%1$s'
|
|
456
|
+
)
|