mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 16:42:19 +00:00
feat(autocomplete): ship a GNU date spec for Linux-first completion
The bundled Fig date spec follows BSD/macOS flags (-j, -n, -t, -v, epoch seconds for -r), so Linux hosts were offered options that do not exist there. Local specs already override the bundled package, so add electron/specs/date.js with the GNU option set: -d/--date, --debug, -f/--file, -I/--iso-8601, -R/--rfc-email, --rfc-3339, -r/--reference, -s/--set, -u/--utc, plus the +FORMAT operand. - Translate the 13 new descriptions; zh-TW is regenerated from them. - Remove the 13 BSD-only date entries after a repository-wide scan showed no other spec references them. - Resolve local specs first in the batch 4 test, matching runtime and the untranslated-description audit, and spot-check the new GNU wording.
This commit is contained in:
1 parent
7eb02ae05d
commit
39d86adaed
5 files changed
+124
-37
No files matched your search
@@ -184,7 +184,6 @@
|
||||
"Adds a newline to the pattern space, then appends the next line of input to the pattern space. If there is no more input then sed exits without processing any more commands": "在模式空间后追加一个换行符,再将下一行输入追加到模式空间;若没有更多输入,sed 退出,不再处理任何命令",
|
||||
"Adds read and execute permissions for all classes": "为所有类别添加读和执行权限",
|
||||
"Adds the user as an owner of the package": "将该用户添加为软件包的所有者",
|
||||
"Adjust and print (but don't set) the second, minute, hour, month day, week day, month, or year according to val": "按 val 调整并打印(但不设置)秒、分、时、日、星期、月或年",
|
||||
"Adjust the access and modification time stamps for the file by the specified value": "按指定值调整文件的访问时间和修改时间",
|
||||
"Advertised address (format: <ip|interface>[:port])": "通告地址(格式:<ip|interface>[:port])",
|
||||
"Advice on how to set your identity configuration when your information is guessed from the system username and domain name": "当你的身份信息是根据系统用户名和域名猜测而来时,关于如何设置身份配置的建议",
|
||||
@@ -289,6 +288,7 @@
|
||||
"An integer port number to connect to on the server. Defaults to 143 for imap:// hosts and 993 for imaps:// hosts. Ignored when imap.tunnel is set": "要连接到服务器的整数端口号。imap:// 主机默认为 143,imaps:// 主机默认为 993。设置了 imap.tunnel 时忽略此项",
|
||||
"An optional platform specifier for container image sources (e.g. 'linux/arm64', 'linux/arm64/v8', 'arm64', 'linux')": "容器镜像源的可选平台说明符(例如 'linux/arm64'、'linux/arm64/v8'、'arm64'、'linux')",
|
||||
"An unsupported Homebrew development flag to skip installing any dependencies of any kind. If the dependencies are not already present, the formula will have issues. If you're not developing Homebrew, consider adjusting your PATH rather than using this flag": "不受支持的 Homebrew 开发标志,用于跳过安装任何类型的依赖。若依赖尚不存在,formula 会出问题。若你不是在开发 Homebrew,请考虑调整 PATH,而不是使用此标志",
|
||||
"Annotate the parsed date and warn about questionable usage on standard error": "对解析出的日期加以注释,并将可疑用法告警到标准错误",
|
||||
"Annotated tag, needs a message": "附注标签,需要一条消息",
|
||||
"Annotation to insert in the ingress object, in the format annotation=value": "要插入 ingress 对象的注解,格式为 annotation=value",
|
||||
"Annotations to apply to the pod": "要应用到 Pod 的注解",
|
||||
@@ -839,6 +839,8 @@
|
||||
"Database table name prefix. Prepended to the names of any database tables used, allowing a single database to be used for several repositories. Supports variable substitution (see git-cvsserver[1] for details). Any non-alphabetic characters will be replaced with underscores": "数据库表名前缀。会加在所用任何数据库表名之前,以便单个数据库供多个仓库使用。支持变量替换(详情参见 git-cvsserver[1])。任何非字母字符都会替换为下划线",
|
||||
"Database used by git-cvsserver to cache revision information derived from the Git repository. The exact meaning depends on the used database driver, for SQLite (which is the default driver) this is a filename. Supports variable substitution (see git-cvsserver[1] for details). May not contain semicolons (`;`). Default: '%Ggitcvs.%m.sqlite'": "git-cvsserver 用来缓存从 Git 仓库派生的修订信息的数据库。具体含义取决于所用数据库驱动;对 SQLite(默认驱动)而言这是一个文件名。支持变量替换(详情参见 git-cvsserver[1])。不得包含分号(`;`)。默认:'%Ggitcvs.%m.sqlite'",
|
||||
"Database user and password. Only useful if setting `gitcvs.dbDriver`, since SQLite has no concept of database users and/or passwords. 'gitcvs.dbUser' supports variable substitution (see git-cvsserver[1] for details)": "数据库用户和密码。仅在设置 `gitcvs.dbDriver` 时有用,因为 SQLite 没有数据库用户和/或密码的概念。'gitcvs.dbUser' 支持变量替换(详情参见 git-cvsserver[1])",
|
||||
"Date string to set the system clock to": "用于设置系统时钟的日期字符串",
|
||||
"Date string, for example '2024-01-01 12:00:00' or 'next friday'": "日期字符串,例如 '2024-01-01 12:00:00' 或 'next friday'",
|
||||
"Debugging mode": "调试模式",
|
||||
"Decode incoming Base64 stream into binary data": "将输入的 Base64 流解码为二进制数据",
|
||||
"Decompress the bzip2(1) compressed file before looking for the text": "查找文本之前,先解压经 bzip2(1) 压缩的文件",
|
||||
@@ -1053,6 +1055,7 @@
|
||||
"Display the alias command": "显示别名命令",
|
||||
"Display the current crontab": "显示当前 crontab",
|
||||
"Display the current state of Homebrew's developer mode": "显示 Homebrew 开发者模式的当前状态",
|
||||
"Display the date and time described by the given string instead of the current time": "显示指定字符串所描述的日期和时间,而不是当前时间",
|
||||
"Display the different group IDs (effective, real and supplementary) as white-space separated numbers, in no particular order": "以空白分隔的数字显示各用户组 ID(有效、真实和补充组),顺序不限",
|
||||
"Display the effective group ID as a number": "以数字显示有效用户组 ID",
|
||||
"Display the effective user ID as a number": "以数字显示有效用户 ID",
|
||||
@@ -1060,6 +1063,7 @@
|
||||
"Display the full manual": "显示完整手册",
|
||||
"Display the full name of the user": "显示用户全名",
|
||||
"Display the id as a password file entry": "以口令文件条目格式显示 id",
|
||||
"Display the last modification time of the given file": "显示给定文件的最后修改时间",
|
||||
"Display the last part of a file": "显示文件的末尾部分",
|
||||
"Display the logical current working directory": "显示逻辑当前工作目录",
|
||||
"Display the name of the user or group ID for the -G, -g and -u options instead of the number. If any of the ID numbers cannot be mapped into names the number will be displayed as usual": "对 -G、-g 和 -u 选项显示用户或用户组 ID 的名称而不是数字。若某个 ID 无法映射为名称,则按原样显示数字",
|
||||
@@ -1244,7 +1248,6 @@
|
||||
"Don't transfer any file smaller than SIZE": "不传输任何小于 SIZE 的文件",
|
||||
"Don't truncate output": "不截断输出",
|
||||
"Don't try to obtain credentials from .netrc": "不尝试从 .netrc 获取凭据",
|
||||
"Don't try to set the date": "不尝试设置日期",
|
||||
"Don't update packages in optionalDependencies": "不更新 optionalDependencies 中的软件包",
|
||||
"Don't use cookies": "不使用 cookie",
|
||||
"Don't validate the server's certificate": "不验证服务器的证书",
|
||||
@@ -1488,7 +1491,9 @@
|
||||
"File to count in": "要统计的文件",
|
||||
"File to move": "要移动的文件",
|
||||
"File to write the default report output to (default is STDOUT)": "写入默认报告输出的文件(默认为 STDOUT)",
|
||||
"File whose modification time is displayed": "要显示其修改时间的文件",
|
||||
"File with bundle of CRLs": "包含 CRL 捆绑的文件",
|
||||
"File with one date string per line": "每行一个日期字符串的文件",
|
||||
"File with pathspec": "包含 pathspec 的文件",
|
||||
"File with the bundle of CAs": "包含 CA 捆绑的文件",
|
||||
"File(s) to readlink": "要读取的符号链接文件",
|
||||
@@ -2498,7 +2503,6 @@
|
||||
"New arguments for the exec credential plugin command for the user entry in kubeconfig": "kubeconfig 中用户条目的 exec 凭据插件命令的新参数",
|
||||
"New url of submodule": "子模块的新 url",
|
||||
"New version": "新版本",
|
||||
"New_time: [[[mm]dd]HH]MM[[cc]yy][.ss], output_fmt: '+' followed by user-defined format string": "New_time: [[[mm]dd]HH]MM[[cc]yy][.ss];output_fmt:'+' 后跟用户自定义的格式字符串",
|
||||
"No \"%s: Directory has been renamed from %s\", \"%s: Directory has been renamed\"": "不显示 \"%s: Directory has been renamed from %s\"、\"%s: Directory has been renamed\"",
|
||||
"No \"%s: Directory is new\"": "不显示 \"%s: Directory is new\"",
|
||||
"No \"%s: File removed before we read it\"": "不显示 \"%s: File removed before we read it\"",
|
||||
@@ -2550,7 +2554,6 @@
|
||||
"Number of log entries between Raft snapshots (default 10000)": "两次 Raft 快照之间的日志条目数(默认 10000)",
|
||||
"Number of messages to be sent per connection, after that a relogin will happen. If the value is 0 or undefined, send all messages in one connection. See also the `--batch-size` option of git-send-email[1]": "每个连接要发送的消息数,之后会重新登录。若值为 0 或 undefined,则在一个连接中发送全部消息。另见 git-send-email[1] 的 `--batch-size` 选项",
|
||||
"Number of parallel children to be used for all forms of fetching": "用于所有获取形式的并行子进程数",
|
||||
"Number of seconds since the Epoch (00:00:00 UTC, January 1, 1970)": "自纪元(1970 年 1 月 1 日 00:00:00 UTC)起算的秒数",
|
||||
"Number of tasks": "任务数",
|
||||
"Number the non-blank output lines, starting at 1": "为非空输出行编号,从 1 开始",
|
||||
"Number the output lines, starting at 1": "为输出行编号,从 1 开始",
|
||||
@@ -2614,7 +2617,6 @@
|
||||
"Only remove the dependency from optionalDependencies": "仅从 optionalDependencies 移除该依赖",
|
||||
"Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time / since may be used": "仅返回特定日期(RFC3339)之后的日志。默认返回全部日志。since-time / since 只能使用其中一个",
|
||||
"Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. Only one of since-time / since may be used": "仅返回比相对时长(如 5s、2m 或 3h)更新的日志。默认返回全部日志。since-time / since 只能使用其中一个",
|
||||
"Only set time on the current machine, instead of all machines in the local group": "只设置当前机器的时间,而不是本地组内的所有机器",
|
||||
"Only set time when the file is more recent than what was given with --mtime": "仅当文件比 --mtime 给定的时间更新时才设置时间",
|
||||
"Only show context names": "仅显示上下文名称",
|
||||
"Only show formulae with multiple versions installed": "仅显示已安装多个版本的 formula",
|
||||
@@ -2656,11 +2658,15 @@
|
||||
"Originator address of the original email": "原始邮件的发件人地址",
|
||||
"Output a change-summary for all updates": "为所有更新输出变更摘要",
|
||||
"Output a zero byte (the ASCII NUL character) instead of the character that normally follows a file name. For example, grep -lZ outputs a zero byte after each file name instead of the usual newline. This option makes the output unambiguous, even in the presence of file names containing unusual characters like newlines. This option can be used with commands like find -print0, perl -0, sort -z, and xargs -0 to process arbitrary file names, even those that contain newline characters": "输出一个零字节(ASCII NUL 字符),而不是通常跟在文件名后面的字符。例如,grep -lZ 在每个文件名后输出零字节,而不是通常的换行符。即使文件名包含换行符等特殊字符,此选项也能使输出无歧义。此选项可与 find -print0、perl -0、sort -z 和 xargs -0 等命令一起使用,以处理任意文件名,包括包含换行符的文件名",
|
||||
"Output an ISO 8601 date/time string; the optional format is date, hours, minutes, seconds or ns": "输出 ISO 8601 日期时间字符串;可选格式为 date、hours、minutes、seconds 或 ns",
|
||||
"Output an RFC 3339 date/time string in the given format": "按给定格式输出 RFC 3339 日期时间字符串",
|
||||
"Output an RFC 5322 email-style date and time string": "输出 RFC 5322 邮件风格的日期时间字符串",
|
||||
"Output audit report in JSON format": "以 JSON 格式输出审计报告",
|
||||
"Output bandwidth as TYPE. TYPE can be bits": "以 TYPE 输出带宽。TYPE 可以是 bits",
|
||||
"Output colored escape sequences based on when, which may be set to either always, auto, or never": "根据 when 输出彩色转义序列,可设为 always、auto 或 never",
|
||||
"Output destination (format: type=local,dest=path)": "输出目标(格式:type=local,dest=path)",
|
||||
"Output events as a stream of json objects": "以 json 对象流输出事件",
|
||||
"Output format beginning with '+', using strftime escapes such as +%Y-%m-%d": "以 '+' 开头的输出格式,使用 strftime 转义,例如 +%Y-%m-%d",
|
||||
"Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file": "输出格式。可选其一:json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file",
|
||||
"Output help": "输出帮助",
|
||||
"Output installed packages in requirements format": "以 requirements 格式输出已安装的软件包",
|
||||
@@ -2729,6 +2735,7 @@
|
||||
"Package(s) to upgrade": "要升级的软件包",
|
||||
"Packages are sorted topologically (dependencies before dependents)": "软件包按拓扑顺序排序(依赖在依赖者之前)",
|
||||
"Parameters used by git-pack-objects[1] when generating a cruft pack and the respective parameters are not given over the command line. See similarly named `pack.*` configuration variables for defaults and meaning": "生成 cruft pack 且命令行未给出相应参数时,git-pack-objects[1] 使用的参数。默认值与含义见同名的 `pack.*` 配置变量",
|
||||
"Parse each line of the given file like --date": "对给定文件的每一行按 --date 的方式解析",
|
||||
"Pass --quiet to git-fetch-pack and silence any other internally used git commands. Progress is not reported to the standard error stream": "向 git-fetch-pack 传递 --quiet,并静默其他内部使用的 git 命令。不向标准错误流报告进度",
|
||||
"Pass a config parameter to the command": "向命令传递配置参数",
|
||||
"Pass an additional HTTP header when communicating with a server. If more than one such entry exists, all of them are added as extra headers. To allow overriding the settings inherited from the system config, an empty value will reset the extra headers to the empty list": "与服务器通信时传递额外的 HTTP 头。若存在多个此类条目,则全部作为额外头添加。为允许覆盖从系统配置继承的设置,空值会将额外头重置为空列表",
|
||||
@@ -2915,7 +2922,6 @@
|
||||
"Print the client and server version information for the current context": "打印当前上下文的客户端和服务器版本信息",
|
||||
"Print the current context": "打印当前上下文",
|
||||
"Print the current directory": "显示当前目录",
|
||||
"Print the date and time represented by the specified number of seconds since the Epoch": "打印指定秒数(自纪元起算)所代表的日期和时间",
|
||||
"Print the directories checked and git operations performed": "打印已检查的目录和已执行的 git 操作",
|
||||
"Print the effective global node_modules folder to standard out": "将有效的全局 node_modules 目录打印到标准输出",
|
||||
"Print the fields of fields (Currently only 1 level deep)": "打印字段的字段(目前仅 1 层深度)",
|
||||
@@ -3684,7 +3690,6 @@
|
||||
"Set the default target": "设置默认目标",
|
||||
"Set the docker endpoint (default [])": "设置 docker 端点(默认 [])",
|
||||
"Set the input block size": "设置输入块大小",
|
||||
"Set the kernel's value for daylight saving time": "设置内核的夏令时取值",
|
||||
"Set the kubernetes endpoint (default [])": "设置 kubernetes 端点(默认 [])",
|
||||
"Set the latest last-applied-configuration annotations by setting it to match the contents of a file. This results in the last-applied-configuration being updated as though 'kubectl apply -f<file> ' was run, without updating any other parts of the object": "通过使其与文件内容一致来设置最新的 last-applied-configuration 注解。这样会更新 last-applied-configuration,效果如同运行了 'kubectl apply -f<file> ',但不会更新对象的任何其他部分",
|
||||
"Set the length object names are abbreviated to. If unspecified or set to \"auto\", an appropriate value is computed based on the approximate number of packed objects in your repository, which hopefully is enough for abbreviated object names to stay unique for some time. If set to \"no\", no abbreviation is made and the object names are shown in their full length. The minimum length is 4": "设置对象名称缩写到的长度。若未指定或设为 \"auto\",将根据仓库中打包对象的大致数量计算一个合适的值,希望足以让缩写后的对象名称在一段时间内保持唯一。若设为 \"no\",则不进行缩写,对象名称以完整长度显示。最小长度为 4",
|
||||
@@ -3702,7 +3707,7 @@
|
||||
"Set the remote file's time on the local output": "将远程文件的时间设置到本地输出上",
|
||||
"Set the selector on a resource. Note that the new selector will overwrite the old selector if the resource had one prior to the invocation of 'set selector'": "设置资源上的选择器。请注意,若资源在调用 'set selector' 之前已有选择器,新选择器将覆盖旧选择器",
|
||||
"Set the starting point at which to create the new commits to the merge base of <upstream> <branch>. Running git rebase --keep-base <upstream> <branch> is equivalent to running git rebase --onto <upstream>… <upstream>. This option is useful in the case where one is developing a feature on top of an upstream branch. While the feature is being worked on, the upstream branch may advance and it may not be the best idea to keep rebasing on top of the upstream but to keep the base commit as-is. Although both this option and --fork-point find the merge base between <upstream> and <branch>, this option uses the merge base as the starting point on which new commits will be created, whereas --fork-point uses the merge base to determine the set of commits which will be rebased": "将创建新提交的起点设为 <upstream> <branch> 的合并基。运行 git rebase --keep-base <upstream> <branch> 等价于运行 git rebase --onto <upstream>… <upstream>。当你在上游分支之上开发功能时,此选项很有用。功能开发过程中,上游分支可能会前进,持续变基到最新上游之上未必最好,保持基提交不变可能更合适。虽然此选项和 --fork-point 都会找出 <upstream> 与 <branch> 之间的合并基,但此选项把合并基用作创建新提交的起点,而 --fork-point 用合并基来确定将被变基的提交集合",
|
||||
"Set the system's value for minutes west of GMT": "设置系统相对 GMT 的分钟偏移",
|
||||
"Set the system time from the given string": "按给定字符串设置系统时间",
|
||||
"Set the target build stage to build": "设置要构建的目标构建阶段",
|
||||
"Set the value of a profile property": "设置 profile 属性的值",
|
||||
"Set this option to `false` to disable the default heuristics that shift diff hunk boundaries to make patches easier to read": "将此选项设为 `false` 可禁用默认启发式;该启发式会移动差异块边界,以使补丁更易读",
|
||||
@@ -4372,7 +4377,6 @@
|
||||
"The file to split": "要拆分的文件",
|
||||
"The filter that will be applied when fetching from this promisor remote. Changing or clearing this value will only affect fetches for new commits. To fetch associated objects for commits already present in the local object database, use the `--refetch` option of git-fetch[1]": "从此 promisor 远程获取时将应用的过滤器。更改或清除此值只影响对新提交的获取。要为本地对象数据库中已有的提交获取关联对象,请使用 git-fetch[1] 的 `--refetch` 选项",
|
||||
"The folder to drop the mails into, which is typically the Drafts folder. For example: \"INBOX.Drafts\", \"INBOX/Drafts\" or \"[Gmail]/Drafts\". Required": "投放邮件的文件夹,通常是草稿文件夹。例如:\"INBOX.Drafts\"、\"INBOX/Drafts\" 或 \"[Gmail]/Drafts\"。必填",
|
||||
"The format with which to parse the new date value": "用于解析新日期值的格式",
|
||||
"The hash algorithm to use": "要使用的哈希算法",
|
||||
"The host port mapping for the container port. To demonstrate a single-machine container": "容器端口的主机端口映射。用于演示单机容器",
|
||||
"The id utility displays the user and group names and numeric IDs, of the calling process, to the standard output. If the real and effective IDs are different, both are displayed, otherwise only the real ID is displayed. If a user (login name or user ID) is specified, the user and group IDs of that user are displayed. In this case, the real and effective IDs are assumed to be the same": "id 工具把调用进程的用户名、组名和数字 ID 输出到标准输出。若真实 ID 与有效 ID 不同,两者都会显示,否则只显示真实 ID。若指定了用户(登录名或用户 ID),则显示该用户的用户和组 ID,此时假定真实 ID 与有效 ID 相同",
|
||||
@@ -4420,7 +4424,6 @@
|
||||
"The names of containers in the selected pod templates to change, all containers are selected by default - may use wildcards": "所选 pod 模板中要更改的容器名称,默认选择所有容器,可使用通配符",
|
||||
"The network from which to copy the configuration": "要从中复制配置的网络",
|
||||
"The network protocol for the service to be created. Default is 'TCP'": "要创建的服务的网络协议。默认为 'TCP'",
|
||||
"The new date to set": "要设置的新日期",
|
||||
"The new desired number of replicas. Required": "新的期望副本数。必填",
|
||||
"The number of bytes per record": "每条记录的字节数",
|
||||
"The number of curl sessions (counted across slots) to be kept across requests. They will not be ended with curl_easy_cleanup() until http_cleanup() is invoked. If USE_CURL_MULTI is not defined, this value will be capped at 1. Defaults to 1": "跨请求保留的 curl 会话数(跨槽位计数)。在调用 http_cleanup() 之前,它们不会以 curl_easy_cleanup() 结束。若未定义 USE_CURL_MULTI,此值上限为 1。默认为 1",
|
||||
@@ -4743,7 +4746,6 @@
|
||||
"Use PORT instead of PASV": "使用 PORT 代替 PASV",
|
||||
"Use PROGRAM to compress temporary files (eg. bzip2)": "使用 PROGRAM 压缩临时文件(例如 bzip2)",
|
||||
"Use PROTOCOL for any URL missing a scheme": "对缺少 scheme 的任何 URL 使用 PROTOCOL",
|
||||
"Use RFC 2822 date and time output format": "使用 RFC 2822 日期时间输出格式",
|
||||
"Use SSLv2": "使用 SSLv2",
|
||||
"Use SSLv3": "使用 SSLv3",
|
||||
"Use TCP Fast Open": "使用 TCP Fast Open",
|
||||
@@ -4799,7 +4801,6 @@
|
||||
"Use revisions from <file> instead of calling git-rev-list": "使用 <file> 中的修订,而不调用 git-rev-list",
|
||||
"Use sed replace EXPRESSION to transform file names": "使用 sed 替换 EXPRESSION 来转换文件名",
|
||||
"Use size for the maximum size of the memory buffer": "将 size 用作内存缓冲区的最大大小",
|
||||
"Use specified format for input instead of the default [[[mm]dd]HH]MM[[cc]yy][.ss] format": "使用指定的输入格式,而不是默认的 [[[mm]dd]HH]MM[[cc]yy][.ss] 格式",
|
||||
"Use staging as the restore location": "使用暂存区作为恢复位置",
|
||||
"Use stat(2) instead of lstat(2). The information reported by stat will refer to the target of file, if file is a symbolic link, and not to file itself. If the link is broken or the target does not exist, fall back on lstat(2) and report information about the link": "使用 stat(2) 而非 lstat(2)。若 file 是符号链接,报告的是其目标而不是链接本身;若链接损坏或目标不存在,则回退到 lstat(2) 并报告链接自身的信息",
|
||||
"Use string to terminate sequence of numbers": "用 string 终止数字序列",
|
||||
@@ -5077,7 +5078,6 @@
|
||||
"You can set this to 'link', in which case a hardlink followed by a delete of the source are used to make sure that object creation will not overwrite existing objects": "可将其设为 'link',此时会先创建硬链接再删除源,以确保创建对象时不会覆盖现有对象",
|
||||
"You can use the --if-present flag to avoid exiting with a non-zero exit code when the script is undefined. This lets you run potentially undefined scripts without breaking the execution chain": "可使用 --if-present 标志,以避免在脚本未定义时以非零退出码退出。这样你可以运行可能未定义的脚本,而不中断执行链",
|
||||
"You may specify up to 16 'pad' bytes to fill out the packet you send. This is useful for diagnosing data-dependent problems in a network. For example, '-p ff' will cause the sent packet to be filled with all ones": "最多可以指定 16 个 'pad' 字节来填充所发送的数据包。这有助于诊断网络中与数据相关的问题。例如,'-p ff' 会使发送的数据包全部填充为 1",
|
||||
"[+|-]val[ymwdHMS]": "[+|-]val[ymwdHMS]",
|
||||
"[-][[hh]mm]SS": "[-][[hh]mm]SS(时间格式)",
|
||||
"[EXPERIMENTAL] A boolean that enables branching support when using `--recurse-submodules` or `submodule.recurse=true`. Enabling this will allow certain commands to accept `--recurse-submodules` and certain commands that already accept `--recurse-submodules` will now consider branches. Defaults to false": "[实验性] 一个布尔值,在使用 `--recurse-submodules` 或 `submodule.recurse=true` 时启用分支支持。启用后,某些命令将接受 `--recurse-submodules`,而已接受 `--recurse-submodules` 的某些命令将会考虑分支。默认为 false",
|
||||
"[[CC]YY]MMDDhhmm[.SS]": "[[CC]YY]MMDDhhmm[.SS](时间格式)",
|
||||
|
||||
@@ -184,7 +184,6 @@
|
||||
"Adds a newline to the pattern space, then appends the next line of input to the pattern space. If there is no more input then sed exits without processing any more commands": "在模式空間後追加一個換行符,再將下一行輸入追加到模式空間;若沒有更多輸入,sed 退出,不再處理任何命令",
|
||||
"Adds read and execute permissions for all classes": "為所有類別新增讀和執行許可權",
|
||||
"Adds the user as an owner of the package": "將該使用者新增為軟體包的所有者",
|
||||
"Adjust and print (but don't set) the second, minute, hour, month day, week day, month, or year according to val": "按 val 調整並列印(但不設定)秒、分、時、日、星期、月或年",
|
||||
"Adjust the access and modification time stamps for the file by the specified value": "按指定值調整檔案的訪問時間和修改時間",
|
||||
"Advertised address (format: <ip|interface>[:port])": "通告地址(格式:<ip|interface>[:port])",
|
||||
"Advice on how to set your identity configuration when your information is guessed from the system username and domain name": "當你的身份資訊是根據系統使用者名稱和域名猜測而來時,關於如何設定身份配置的建議",
|
||||
@@ -289,6 +288,7 @@
|
||||
"An integer port number to connect to on the server. Defaults to 143 for imap:// hosts and 993 for imaps:// hosts. Ignored when imap.tunnel is set": "要連線到伺服器的整數埠號。imap:// 主機預設為 143,imaps:// 主機預設為 993。設定了 imap.tunnel 時忽略此項",
|
||||
"An optional platform specifier for container image sources (e.g. 'linux/arm64', 'linux/arm64/v8', 'arm64', 'linux')": "容器映象源的可選平臺說明符(例如 'linux/arm64'、'linux/arm64/v8'、'arm64'、'linux')",
|
||||
"An unsupported Homebrew development flag to skip installing any dependencies of any kind. If the dependencies are not already present, the formula will have issues. If you're not developing Homebrew, consider adjusting your PATH rather than using this flag": "不受支援的 Homebrew 開發標誌,用於跳過安裝任何型別的依賴。若依賴尚不存在,formula 會出問題。若你不是在開發 Homebrew,請考慮調整 PATH,而不是使用此標誌",
|
||||
"Annotate the parsed date and warn about questionable usage on standard error": "對解析出的日期加以註釋,並將可疑用法告警到標準錯誤",
|
||||
"Annotated tag, needs a message": "附註標籤,需要一條訊息",
|
||||
"Annotation to insert in the ingress object, in the format annotation=value": "要插入 ingress 物件的註解,格式為 annotation=value",
|
||||
"Annotations to apply to the pod": "要應用到 Pod 的註解",
|
||||
@@ -839,6 +839,8 @@
|
||||
"Database table name prefix. Prepended to the names of any database tables used, allowing a single database to be used for several repositories. Supports variable substitution (see git-cvsserver[1] for details). Any non-alphabetic characters will be replaced with underscores": "資料庫表名字首。會加在所用任何資料庫表名之前,以便單個數據庫供多個倉庫使用。支援變數替換(詳情參見 git-cvsserver[1])。任何非字母字元都會替換為下劃線",
|
||||
"Database used by git-cvsserver to cache revision information derived from the Git repository. The exact meaning depends on the used database driver, for SQLite (which is the default driver) this is a filename. Supports variable substitution (see git-cvsserver[1] for details). May not contain semicolons (`;`). Default: '%Ggitcvs.%m.sqlite'": "git-cvsserver 用來快取從 Git 倉庫派生的修訂資訊的資料庫。具體含義取決於所用資料庫驅動;對 SQLite(預設驅動)而言這是一個檔名。支援變數替換(詳情參見 git-cvsserver[1])。不得包含分號(`;`)。預設:'%Ggitcvs.%m.sqlite'",
|
||||
"Database user and password. Only useful if setting `gitcvs.dbDriver`, since SQLite has no concept of database users and/or passwords. 'gitcvs.dbUser' supports variable substitution (see git-cvsserver[1] for details)": "資料庫使用者和密碼。僅在設定 `gitcvs.dbDriver` 時有用,因為 SQLite 沒有資料庫使用者和/或密碼的概念。'gitcvs.dbUser' 支援變數替換(詳情參見 git-cvsserver[1])",
|
||||
"Date string to set the system clock to": "用於設定系統時鐘的日期字串",
|
||||
"Date string, for example '2024-01-01 12:00:00' or 'next friday'": "日期字串,例如 '2024-01-01 12:00:00' 或 'next friday'",
|
||||
"Debugging mode": "除錯模式",
|
||||
"Decode incoming Base64 stream into binary data": "將輸入的 Base64 流解碼為二進位制資料",
|
||||
"Decompress the bzip2(1) compressed file before looking for the text": "查詢文本之前,先解壓經 bzip2(1) 壓縮的檔案",
|
||||
@@ -1053,6 +1055,7 @@
|
||||
"Display the alias command": "顯示別名命令",
|
||||
"Display the current crontab": "顯示當前 crontab",
|
||||
"Display the current state of Homebrew's developer mode": "顯示 Homebrew 開發者模式的當前狀態",
|
||||
"Display the date and time described by the given string instead of the current time": "顯示指定字串所描述的日期和時間,而不是當前時間",
|
||||
"Display the different group IDs (effective, real and supplementary) as white-space separated numbers, in no particular order": "以空白分隔的數字顯示各使用者組 ID(有效、真實和補充組),順序不限",
|
||||
"Display the effective group ID as a number": "以數字顯示有效使用者組 ID",
|
||||
"Display the effective user ID as a number": "以數字顯示有效使用者 ID",
|
||||
@@ -1060,6 +1063,7 @@
|
||||
"Display the full manual": "顯示完整手冊",
|
||||
"Display the full name of the user": "顯示使用者全名",
|
||||
"Display the id as a password file entry": "以口令檔案條目格式顯示 id",
|
||||
"Display the last modification time of the given file": "顯示給定檔案的最後修改時間",
|
||||
"Display the last part of a file": "顯示檔案的末尾部分",
|
||||
"Display the logical current working directory": "顯示邏輯當前工作目錄",
|
||||
"Display the name of the user or group ID for the -G, -g and -u options instead of the number. If any of the ID numbers cannot be mapped into names the number will be displayed as usual": "對 -G、-g 和 -u 選項顯示使用者或使用者組 ID 的名稱而不是數字。若某個 ID 無法對映為名稱,則按原樣顯示數字",
|
||||
@@ -1244,7 +1248,6 @@
|
||||
"Don't transfer any file smaller than SIZE": "不傳輸任何小於 SIZE 的檔案",
|
||||
"Don't truncate output": "不截斷輸出",
|
||||
"Don't try to obtain credentials from .netrc": "不嘗試從 .netrc 獲取憑據",
|
||||
"Don't try to set the date": "不嘗試設定日期",
|
||||
"Don't update packages in optionalDependencies": "不更新 optionalDependencies 中的軟體包",
|
||||
"Don't use cookies": "不使用 cookie",
|
||||
"Don't validate the server's certificate": "不驗證伺服器的證書",
|
||||
@@ -1488,7 +1491,9 @@
|
||||
"File to count in": "要統計的檔案",
|
||||
"File to move": "要移動的檔案",
|
||||
"File to write the default report output to (default is STDOUT)": "寫入預設報告輸出的檔案(預設為 STDOUT)",
|
||||
"File whose modification time is displayed": "要顯示其修改時間的檔案",
|
||||
"File with bundle of CRLs": "包含 CRL 捆綁的檔案",
|
||||
"File with one date string per line": "每行一個日期字串的檔案",
|
||||
"File with pathspec": "包含 pathspec 的檔案",
|
||||
"File with the bundle of CAs": "包含 CA 捆綁的檔案",
|
||||
"File(s) to readlink": "要讀取的符號連結檔案",
|
||||
@@ -2498,7 +2503,6 @@
|
||||
"New arguments for the exec credential plugin command for the user entry in kubeconfig": "kubeconfig 中使用者條目的 exec 憑據外掛命令的新引數",
|
||||
"New url of submodule": "子模組的新 url",
|
||||
"New version": "新版本",
|
||||
"New_time: [[[mm]dd]HH]MM[[cc]yy][.ss], output_fmt: '+' followed by user-defined format string": "New_time: [[[mm]dd]HH]MM[[cc]yy][.ss];output_fmt:'+' 後跟使用者自定義的格式字串",
|
||||
"No \"%s: Directory has been renamed from %s\", \"%s: Directory has been renamed\"": "不顯示 \"%s: Directory has been renamed from %s\"、\"%s: Directory has been renamed\"",
|
||||
"No \"%s: Directory is new\"": "不顯示 \"%s: Directory is new\"",
|
||||
"No \"%s: File removed before we read it\"": "不顯示 \"%s: File removed before we read it\"",
|
||||
@@ -2550,7 +2554,6 @@
|
||||
"Number of log entries between Raft snapshots (default 10000)": "兩次 Raft 快照之間的日誌條目數(預設 10000)",
|
||||
"Number of messages to be sent per connection, after that a relogin will happen. If the value is 0 or undefined, send all messages in one connection. See also the `--batch-size` option of git-send-email[1]": "每個連線要傳送的訊息數,之後會重新登入。若值為 0 或 undefined,則在一個連線中傳送全部訊息。另見 git-send-email[1] 的 `--batch-size` 選項",
|
||||
"Number of parallel children to be used for all forms of fetching": "用於所有獲取形式的並行子行程數",
|
||||
"Number of seconds since the Epoch (00:00:00 UTC, January 1, 1970)": "自紀元(1970 年 1 月 1 日 00:00:00 UTC)起算的秒數",
|
||||
"Number of tasks": "任務數",
|
||||
"Number the non-blank output lines, starting at 1": "為非空輸出行編號,從 1 開始",
|
||||
"Number the output lines, starting at 1": "為輸出行編號,從 1 開始",
|
||||
@@ -2614,7 +2617,6 @@
|
||||
"Only remove the dependency from optionalDependencies": "僅從 optionalDependencies 移除該依賴",
|
||||
"Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time / since may be used": "僅返回特定日期(RFC3339)之後的日誌。預設返回全部日誌。since-time / since 只能使用其中一個",
|
||||
"Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. Only one of since-time / since may be used": "僅返回比相對時長(如 5s、2m 或 3h)更新的日誌。預設返回全部日誌。since-time / since 只能使用其中一個",
|
||||
"Only set time on the current machine, instead of all machines in the local group": "只設置當前機器的時間,而不是本地組內的所有機器",
|
||||
"Only set time when the file is more recent than what was given with --mtime": "僅當檔案比 --mtime 給定的時間更新時才設定時間",
|
||||
"Only show context names": "僅顯示上下文名稱",
|
||||
"Only show formulae with multiple versions installed": "僅顯示已安裝多個版本的 formula",
|
||||
@@ -2656,11 +2658,15 @@
|
||||
"Originator address of the original email": "原始郵件的發件人地址",
|
||||
"Output a change-summary for all updates": "為所有更新輸出變更摘要",
|
||||
"Output a zero byte (the ASCII NUL character) instead of the character that normally follows a file name. For example, grep -lZ outputs a zero byte after each file name instead of the usual newline. This option makes the output unambiguous, even in the presence of file names containing unusual characters like newlines. This option can be used with commands like find -print0, perl -0, sort -z, and xargs -0 to process arbitrary file names, even those that contain newline characters": "輸出一個零位元組(ASCII NUL 字元),而不是通常跟在檔名後面的字元。例如,grep -lZ 在每個檔名後輸出零位元組,而不是通常的換行符。即使檔名包含換行符等特殊字元,此選項也能使輸出無歧義。此選項可與 find -print0、perl -0、sort -z 和 xargs -0 等命令一起使用,以處理任意檔名,包括包含換行符的檔名",
|
||||
"Output an ISO 8601 date/time string; the optional format is date, hours, minutes, seconds or ns": "輸出 ISO 8601 日期時間字串;可選格式為 date、hours、minutes、seconds 或 ns",
|
||||
"Output an RFC 3339 date/time string in the given format": "按給定格式輸出 RFC 3339 日期時間字串",
|
||||
"Output an RFC 5322 email-style date and time string": "輸出 RFC 5322 郵件風格的日期時間字串",
|
||||
"Output audit report in JSON format": "以 JSON 格式輸出審計報告",
|
||||
"Output bandwidth as TYPE. TYPE can be bits": "以 TYPE 輸出頻寬。TYPE 可以是 bits",
|
||||
"Output colored escape sequences based on when, which may be set to either always, auto, or never": "根據 when 輸出彩色轉義序列,可設為 always、auto 或 never",
|
||||
"Output destination (format: type=local,dest=path)": "輸出目標(格式:type=local,dest=path)",
|
||||
"Output events as a stream of json objects": "以 json 物件流輸出事件",
|
||||
"Output format beginning with '+', using strftime escapes such as +%Y-%m-%d": "以 '+' 開頭的輸出格式,使用 strftime 轉義,例如 +%Y-%m-%d",
|
||||
"Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file": "輸出格式。可選其一:json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file",
|
||||
"Output help": "輸出幫助",
|
||||
"Output installed packages in requirements format": "以 requirements 格式輸出已安裝的軟體包",
|
||||
@@ -2729,6 +2735,7 @@
|
||||
"Package(s) to upgrade": "要升級的軟體包",
|
||||
"Packages are sorted topologically (dependencies before dependents)": "軟體包按拓撲順序排序(依賴在依賴者之前)",
|
||||
"Parameters used by git-pack-objects[1] when generating a cruft pack and the respective parameters are not given over the command line. See similarly named `pack.*` configuration variables for defaults and meaning": "生成 cruft pack 且命令列未給出相應引數時,git-pack-objects[1] 使用的引數。預設值與含義見同名的 `pack.*` 配置變數",
|
||||
"Parse each line of the given file like --date": "對給定檔案的每一行按 --date 的方式解析",
|
||||
"Pass --quiet to git-fetch-pack and silence any other internally used git commands. Progress is not reported to the standard error stream": "向 git-fetch-pack 傳遞 --quiet,並靜默其他內部使用的 git 命令。不向標準錯誤流報告進度",
|
||||
"Pass a config parameter to the command": "向命令傳遞配置引數",
|
||||
"Pass an additional HTTP header when communicating with a server. If more than one such entry exists, all of them are added as extra headers. To allow overriding the settings inherited from the system config, an empty value will reset the extra headers to the empty list": "與伺服器通訊時傳遞額外的 HTTP 頭。若存在多個此類條目,則全部作為額外頭新增。為允許覆蓋從系統配置繼承的設定,空值會將額外頭重置為空列表",
|
||||
@@ -2915,7 +2922,6 @@
|
||||
"Print the client and server version information for the current context": "列印當前上下文的客戶端和伺服器版本資訊",
|
||||
"Print the current context": "列印當前上下文",
|
||||
"Print the current directory": "顯示當前目錄",
|
||||
"Print the date and time represented by the specified number of seconds since the Epoch": "列印指定秒數(自紀元起算)所代表的日期和時間",
|
||||
"Print the directories checked and git operations performed": "列印已檢查的目錄和已執行的 git 操作",
|
||||
"Print the effective global node_modules folder to standard out": "將有效的全域性 node_modules 目錄列印到標準輸出",
|
||||
"Print the fields of fields (Currently only 1 level deep)": "列印欄位的欄位(目前僅 1 層深度)",
|
||||
@@ -3684,7 +3690,6 @@
|
||||
"Set the default target": "設定預設目標",
|
||||
"Set the docker endpoint (default [])": "設定 docker 端點(預設 [])",
|
||||
"Set the input block size": "設定輸入塊大小",
|
||||
"Set the kernel's value for daylight saving time": "設定核心的夏令時取值",
|
||||
"Set the kubernetes endpoint (default [])": "設定 kubernetes 端點(預設 [])",
|
||||
"Set the latest last-applied-configuration annotations by setting it to match the contents of a file. This results in the last-applied-configuration being updated as though 'kubectl apply -f<file> ' was run, without updating any other parts of the object": "通過使其與檔案內容一致來設定最新的 last-applied-configuration 註解。這樣會更新 last-applied-configuration,效果如同運行了 'kubectl apply -f<file> ',但不會更新物件的任何其他部分",
|
||||
"Set the length object names are abbreviated to. If unspecified or set to \"auto\", an appropriate value is computed based on the approximate number of packed objects in your repository, which hopefully is enough for abbreviated object names to stay unique for some time. If set to \"no\", no abbreviation is made and the object names are shown in their full length. The minimum length is 4": "設定物件名稱縮寫到的長度。若未指定或設為 \"auto\",將根據倉庫中打包物件的大致數量計算一個合適的值,希望足以讓縮寫後的物件名稱在一段時間內保持唯一。若設為 \"no\",則不進行縮寫,物件名稱以完整長度顯示。最小長度為 4",
|
||||
@@ -3702,7 +3707,7 @@
|
||||
"Set the remote file's time on the local output": "將遠端檔案的時間設定到本地輸出上",
|
||||
"Set the selector on a resource. Note that the new selector will overwrite the old selector if the resource had one prior to the invocation of 'set selector'": "設定資源上的選擇器。請注意,若資源在呼叫 'set selector' 之前已有選擇器,新選擇器將覆蓋舊選擇器",
|
||||
"Set the starting point at which to create the new commits to the merge base of <upstream> <branch>. Running git rebase --keep-base <upstream> <branch> is equivalent to running git rebase --onto <upstream>… <upstream>. This option is useful in the case where one is developing a feature on top of an upstream branch. While the feature is being worked on, the upstream branch may advance and it may not be the best idea to keep rebasing on top of the upstream but to keep the base commit as-is. Although both this option and --fork-point find the merge base between <upstream> and <branch>, this option uses the merge base as the starting point on which new commits will be created, whereas --fork-point uses the merge base to determine the set of commits which will be rebased": "將建立新提交的起點設為 <upstream> <branch> 的合併基。執行 git rebase --keep-base <upstream> <branch> 等價於執行 git rebase --onto <upstream>… <upstream>。當你在上游分支之上開發功能時,此選項很有用。功能開發過程中,上游分支可能會前進,持續變基到最新上游之上未必最好,保持基提交不變可能更合適。雖然此選項和 --fork-point 都會找出 <upstream> 與 <branch> 之間的合併基,但此選項把合併基用作建立新提交的起點,而 --fork-point 用合併基來確定將被變基的提交集合",
|
||||
"Set the system's value for minutes west of GMT": "設定系統相對 GMT 的分鐘偏移",
|
||||
"Set the system time from the given string": "按給定字串設定系統時間",
|
||||
"Set the target build stage to build": "設定要構建的目標構建階段",
|
||||
"Set the value of a profile property": "設定 profile 屬性的值",
|
||||
"Set this option to `false` to disable the default heuristics that shift diff hunk boundaries to make patches easier to read": "將此選項設為 `false` 可停用預設啟發式;該啟發式會移動差異塊邊界,以使補丁更易讀",
|
||||
@@ -4372,7 +4377,6 @@
|
||||
"The file to split": "要拆分的檔案",
|
||||
"The filter that will be applied when fetching from this promisor remote. Changing or clearing this value will only affect fetches for new commits. To fetch associated objects for commits already present in the local object database, use the `--refetch` option of git-fetch[1]": "從此 promisor 遠端獲取時將應用的過濾器。更改或清除此值隻影響對新提交的獲取。要為本地物件資料庫中已有的提交獲取關聯物件,請使用 git-fetch[1] 的 `--refetch` 選項",
|
||||
"The folder to drop the mails into, which is typically the Drafts folder. For example: \"INBOX.Drafts\", \"INBOX/Drafts\" or \"[Gmail]/Drafts\". Required": "投放郵件的資料夾,通常是草稿資料夾。例如:\"INBOX.Drafts\"、\"INBOX/Drafts\" 或 \"[Gmail]/Drafts\"。必填",
|
||||
"The format with which to parse the new date value": "用於解析新日期值的格式",
|
||||
"The hash algorithm to use": "要使用的雜湊演算法",
|
||||
"The host port mapping for the container port. To demonstrate a single-machine container": "容器埠的主機埠對映。用於演示單機容器",
|
||||
"The id utility displays the user and group names and numeric IDs, of the calling process, to the standard output. If the real and effective IDs are different, both are displayed, otherwise only the real ID is displayed. If a user (login name or user ID) is specified, the user and group IDs of that user are displayed. In this case, the real and effective IDs are assumed to be the same": "id 工具把呼叫行程的使用者名稱、組名和數字 ID 輸出到標準輸出。若真實 ID 與有效 ID 不同,兩者都會顯示,否則只顯示真實 ID。若指定了使用者(登入名或使用者 ID),則顯示該使用者的使用者和組 ID,此時假定真實 ID 與有效 ID 相同",
|
||||
@@ -4420,7 +4424,6 @@
|
||||
"The names of containers in the selected pod templates to change, all containers are selected by default - may use wildcards": "所選 pod 模板中要更改的容器名稱,預設選擇所有容器,可使用萬用字元",
|
||||
"The network from which to copy the configuration": "要從中複製配置的網路",
|
||||
"The network protocol for the service to be created. Default is 'TCP'": "要建立的服務的網路協議。預設為 'TCP'",
|
||||
"The new date to set": "要設定的新日期",
|
||||
"The new desired number of replicas. Required": "新的期望副本數。必填",
|
||||
"The number of bytes per record": "每條記錄的位元組數",
|
||||
"The number of curl sessions (counted across slots) to be kept across requests. They will not be ended with curl_easy_cleanup() until http_cleanup() is invoked. If USE_CURL_MULTI is not defined, this value will be capped at 1. Defaults to 1": "跨請求保留的 curl 會話數(跨槽位計數)。在呼叫 http_cleanup() 之前,它們不會以 curl_easy_cleanup() 結束。若未定義 USE_CURL_MULTI,此值上限為 1。預設為 1",
|
||||
@@ -4743,7 +4746,6 @@
|
||||
"Use PORT instead of PASV": "使用 PORT 代替 PASV",
|
||||
"Use PROGRAM to compress temporary files (eg. bzip2)": "使用 PROGRAM 壓縮臨時檔案(例如 bzip2)",
|
||||
"Use PROTOCOL for any URL missing a scheme": "對缺少 scheme 的任何 URL 使用 PROTOCOL",
|
||||
"Use RFC 2822 date and time output format": "使用 RFC 2822 日期時間輸出格式",
|
||||
"Use SSLv2": "使用 SSLv2",
|
||||
"Use SSLv3": "使用 SSLv3",
|
||||
"Use TCP Fast Open": "使用 TCP Fast Open",
|
||||
@@ -4799,7 +4801,6 @@
|
||||
"Use revisions from <file> instead of calling git-rev-list": "使用 <file> 中的修訂,而不呼叫 git-rev-list",
|
||||
"Use sed replace EXPRESSION to transform file names": "使用 sed 替換 EXPRESSION 來轉換檔名",
|
||||
"Use size for the maximum size of the memory buffer": "將 size 用作記憶體緩衝區的最大大小",
|
||||
"Use specified format for input instead of the default [[[mm]dd]HH]MM[[cc]yy][.ss] format": "使用指定的輸入格式,而不是預設的 [[[mm]dd]HH]MM[[cc]yy][.ss] 格式",
|
||||
"Use staging as the restore location": "使用暫存區作為恢復位置",
|
||||
"Use stat(2) instead of lstat(2). The information reported by stat will refer to the target of file, if file is a symbolic link, and not to file itself. If the link is broken or the target does not exist, fall back on lstat(2) and report information about the link": "使用 stat(2) 而非 lstat(2)。若 file 是符號連結,報告的是其目標而不是連結本身;若連結損壞或目標不存在,則回退到 lstat(2) 並報告連結自身的資訊",
|
||||
"Use string to terminate sequence of numbers": "用 string 終止數字序列",
|
||||
@@ -5077,7 +5078,6 @@
|
||||
"You can set this to 'link', in which case a hardlink followed by a delete of the source are used to make sure that object creation will not overwrite existing objects": "可將其設為 'link',此時會先建立硬連結再刪除源,以確保建立物件時不會覆蓋現有物件",
|
||||
"You can use the --if-present flag to avoid exiting with a non-zero exit code when the script is undefined. This lets you run potentially undefined scripts without breaking the execution chain": "可使用 --if-present 標誌,以避免在指令碼未定義時以非零退出碼退出。這樣你可以執行可能未定義的指令碼,而不中斷執行鏈",
|
||||
"You may specify up to 16 'pad' bytes to fill out the packet you send. This is useful for diagnosing data-dependent problems in a network. For example, '-p ff' will cause the sent packet to be filled with all ones": "最多可以指定 16 個 'pad' 位元組來填充所傳送的資料包。這有助於診斷網路中與資料相關的問題。例如,'-p ff' 會使傳送的資料包全部填充為 1",
|
||||
"[+|-]val[ymwdHMS]": "[+|-]val[ymwdHMS]",
|
||||
"[-][[hh]mm]SS": "[-][[hh]mm]SS(時間格式)",
|
||||
"[EXPERIMENTAL] A boolean that enables branching support when using `--recurse-submodules` or `submodule.recurse=true`. Enabling this will allow certain commands to accept `--recurse-submodules` and certain commands that already accept `--recurse-submodules` will now consider branches. Defaults to false": "[實驗性] 一個布林值,在使用 `--recurse-submodules` 或 `submodule.recurse=true` 時啟用分支支援。啟用後,某些命令將接受 `--recurse-submodules`,而已接受 `--recurse-submodules` 的某些命令將會考慮分支。預設為 false",
|
||||
"[[CC]YY]MMDDhhmm[.SS]": "[[CC]YY]MMDDhhmm[.SS](時間格式)",
|
||||
|
||||
@@ -8,7 +8,15 @@ import type { FigSpec } from "./autocomplete/figSpecLoader.ts";
|
||||
|
||||
const HERE = path.dirname(fileURLToPath(import.meta.url));
|
||||
const ROOT = path.resolve(HERE, "../..");
|
||||
const SPEC_DIR = path.join(ROOT, "node_modules/@withfig/autocomplete/build");
|
||||
const FIG_SPEC_DIR = path.join(ROOT, "node_modules/@withfig/autocomplete/build");
|
||||
// Runtime prefers local specs (electron/specs) over the bundled package, so the
|
||||
// tests must resolve the same file the popup will load.
|
||||
const LOCAL_SPEC_DIR = path.join(ROOT, "electron/specs");
|
||||
|
||||
function resolveSpecPath(name: string): string {
|
||||
const local = path.join(LOCAL_SPEC_DIR, `${name}.js`);
|
||||
return fs.existsSync(local) ? local : path.join(FIG_SPEC_DIR, `${name}.js`);
|
||||
}
|
||||
const DICT_DIR = path.join(HERE, "autocomplete");
|
||||
const COMMANDS = [
|
||||
"echo",
|
||||
@@ -38,7 +46,7 @@ const COMMANDS = [
|
||||
const specs = Object.fromEntries(
|
||||
await Promise.all(
|
||||
COMMANDS.map(async (name) => {
|
||||
const mod = await import(pathToFileURL(path.join(SPEC_DIR, `${name}.js`)).href);
|
||||
const mod = await import(pathToFileURL(resolveSpecPath(name)).href);
|
||||
return [name, mod.default?.default ?? mod.default] as const;
|
||||
}),
|
||||
),
|
||||
@@ -156,8 +164,20 @@ test("batch 4 spot checks preserve verified semantics, placeholders and upstream
|
||||
simplified["Query MX Record"],
|
||||
"查询 NS 记录(上游英文描述误写为 MX)",
|
||||
);
|
||||
// The local GNU date spec replaces the bundled BSD option set.
|
||||
assert.equal(
|
||||
simplified["Display the last modification time of the given file"],
|
||||
"显示给定文件的最后修改时间",
|
||||
);
|
||||
assert.equal(
|
||||
traditional["Display the last modification time of the given file"],
|
||||
"顯示給定檔案的最後修改時間",
|
||||
);
|
||||
assert.equal(
|
||||
simplified["Set the system time from the given string"],
|
||||
"按给定字符串设置系统时间",
|
||||
);
|
||||
// Placeholder-bearing keys stay literal.
|
||||
assert.equal(simplified["[+|-]val[ymwdHMS]"], "[+|-]val[ymwdHMS]");
|
||||
assert.equal(simplified["N[K|k|M|m|G|g]"], "N[K|k|M|m|G|g]");
|
||||
});
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ filenames)` is shared by `basename` and `dirname`).
|
||||
| `@withfig/autocomplete` | `2.692.3`; compiled `build/{echo,which,paste,pwd,clear,su,crontab,env,uname,base64,date,id,split,seq,join,dig,dd,htop,basename,dirname,readlink,more}.js` | English keys, option names, and arguments |
|
||||
| GNU Coreutils | documented `echo`, `env`, `base64`, `date`, `id`, `split`, `seq`, `join`, `dd`, `pwd`, `basename`, `dirname`, `readlink` behavior | Option semantics shared with GNU |
|
||||
| BSD/macOS manuals | local macOS `man su`, `date`, `crontab`, `clear`, `more`, `id`, `paste` | Flags the Fig specs actually expose (several are BSD-only) |
|
||||
| `jaywcjlove/linux-command` | MIT, `master` fetched 2026-11-07 (sparse clone of `command/`) | GNU option wording for the Linux-first review, and the option set of the local GNU `date` spec |
|
||||
|
||||
Checked on 2026-11-07 against `@withfig/autocomplete@2.692.3` by scanning all 714
|
||||
bundled specs for each adopted key. Eleven keys are shared outside this batch
|
||||
@@ -47,7 +48,7 @@ and were reviewed for wording that stays correct in every owner:
|
||||
| `env` | 8 | NUL-terminated output, `-i`, `-v`, `-u`, `-P`, `-S` |
|
||||
| `uname` | 8 | `-a`, `-m`, `-n`, `-p`, `-r`, `-s`, `-v` |
|
||||
| `base64` | 5 | encode/decode, line breaks, input/output files |
|
||||
| `date` | 15 | BSD `-d`, `-f`, `-j`, `-n`, `-R`, `-r`, `-t`, `-u`, `-v` |
|
||||
| `date` | 13 | local GNU spec: `-d`, `--debug`, `-f`, `-I`, `-R`, `--rfc-3339`, `-r`, `-s`, `-u` |
|
||||
| `id` | 10 | audit, full name, groups, MAC label, `-n`, `-p` |
|
||||
| `split` | 9 | suffix length, `-b`, `-d`, `-l`, `-p`, file, prefix |
|
||||
| `seq` | 11 | start/step/last, `-w`, `-s`, `-f`, `-t` |
|
||||
@@ -77,10 +78,13 @@ on-demand spec load for the most common shell sessions.
|
||||
^L (form feed)” and `-f` to “Count logical lines, rather than screen lines”.
|
||||
This matches GNU `more`; the translations follow the option each description
|
||||
belongs to, not the numeric order of the list.
|
||||
- **date**: the spec exposes BSD/macOS flags (`-d` for DST, `-f` input format,
|
||||
`-j` dry run, `-n`, `-R`, `-r epoch seconds`, `-t` minutes west of GMT, `-v`
|
||||
adjust). The translations keep the BSD meanings instead of borrowing GNU
|
||||
`--date`/`--set` wording.
|
||||
- **date**: replaced by a local GNU spec (`electron/specs/date.js`). The bundled
|
||||
Fig spec exposed BSD/macOS flags (`-d` DST, `-f` input format, `-j` dry run,
|
||||
`-n`, `-R`, `-r` epoch seconds, `-t` minutes west of GMT, `-v` adjust) that
|
||||
Linux hosts do not have. The local spec describes `-d/--date`, `--debug`,
|
||||
`-f/--file`, `-I/--iso-8601`, `-R/--rfc-email`, `--rfc-3339`, `-r/--reference`,
|
||||
`-s/--set` and `-u/--utc` instead, and the 13 BSD-only entries were removed
|
||||
after a repository-wide scan showed no other spec used them.
|
||||
- **su**: `-f` is the csh-specific `.cshrc` guard, `-l` performs a full login,
|
||||
`-` alone equals `-l`, and `-m` keeps the environment. All four descriptions
|
||||
follow the BSD assertions in the spec, including the `getusershell(3)`
|
||||
@@ -105,7 +109,8 @@ on-demand spec load for the most common shell sessions.
|
||||
Netcatty sessions usually target Linux hosts, so GNU semantics were checked
|
||||
against `jaywcjlove/linux-command` (MIT, commit `master` at 2026-11-07) for every
|
||||
command in this batch that the reference covers (21 of 22; `readlink` is absent).
|
||||
That review changed four entries and confirmed the rest:
|
||||
That review changed four entries, confirmed the rest, and produced the GNU
|
||||
`date` spec below:
|
||||
|
||||
- `uname -s/-r/-v`: the Fig text says “operating system name/release/version”,
|
||||
but GNU `uname` prints the kernel name/release/version. The zh-CN text now says
|
||||
@@ -116,14 +121,15 @@ That review changed four entries and confirmed the rest:
|
||||
- No other wording diverged from the reference beyond synonyms (`制表符` vs
|
||||
`跳格字符`, `块` vs `区块`); the existing glossary terms stay in place.
|
||||
|
||||
Some specs in this batch expose options that do not exist in GNU tools. Those
|
||||
`date` is no longer in this list: it now ships a GNU spec of its own (see the
|
||||
semantic notes). The remaining specs in this batch expose options that do not
|
||||
exist in GNU tools. Those
|
||||
descriptions describe the option each spec actually inserts, so they are **not**
|
||||
rewritten into GNU wording — doing so would label an item with behavior it does
|
||||
not have on the host being connected to:
|
||||
|
||||
| Command | Spec-only (BSD/macOS) options |
|
||||
| --- | --- |
|
||||
| `date` | `-d`, `-f`, `-j`, `-n`, `-R`, `-t` |
|
||||
| `su` | `-f`, `-l`, `-m`, `-` |
|
||||
| `id` | `-A`, `-F`, `-M`, `-P` |
|
||||
| `base64` | `-b`, `-i`, `-o` |
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
// date spec — GNU coreutils date (Linux hosts). The bundled Fig spec follows
|
||||
// BSD/macOS flags (-j, -n, -t, -v) that GNU date does not have, so this local
|
||||
// spec describes the GNU option set instead. Local specs win over the bundled
|
||||
// package at runtime and in the translation audit.
|
||||
const completionSpec = {
|
||||
name: "date",
|
||||
description: "Display or set date and time",
|
||||
options: [
|
||||
{
|
||||
name: ["-d", "--date"],
|
||||
description: "Display the date and time described by the given string instead of the current time",
|
||||
args: { name: "string", description: "Date string, for example '2024-01-01 12:00:00' or 'next friday'" },
|
||||
},
|
||||
{
|
||||
name: "--debug",
|
||||
description: "Annotate the parsed date and warn about questionable usage on standard error",
|
||||
},
|
||||
{
|
||||
name: ["-f", "--file"],
|
||||
description: "Parse each line of the given file like --date",
|
||||
args: { name: "datefile", description: "File with one date string per line" },
|
||||
},
|
||||
{
|
||||
name: ["-I", "--iso-8601"],
|
||||
description: "Output an ISO 8601 date/time string; the optional format is date, hours, minutes, seconds or ns",
|
||||
args: { name: "format", isOptional: true, suggestions: ["date", "hours", "minutes", "seconds", "ns"] },
|
||||
},
|
||||
{
|
||||
name: ["-R", "--rfc-email"],
|
||||
description: "Output an RFC 5322 email-style date and time string",
|
||||
},
|
||||
{
|
||||
name: "--rfc-3339",
|
||||
description: "Output an RFC 3339 date/time string in the given format",
|
||||
args: { name: "format", suggestions: ["date", "seconds", "ns"] },
|
||||
},
|
||||
{
|
||||
name: ["-r", "--reference"],
|
||||
description: "Display the last modification time of the given file",
|
||||
args: { name: "file", description: "File whose modification time is displayed" },
|
||||
},
|
||||
{
|
||||
name: ["-s", "--set"],
|
||||
description: "Set the system time from the given string",
|
||||
args: { name: "string", description: "Date string to set the system clock to" },
|
||||
},
|
||||
{
|
||||
name: ["-u", "--utc", "--universal"],
|
||||
description: "Display or set the date in UTC (Coordinated Universal) time",
|
||||
},
|
||||
{ name: "--help", description: "Display help text" },
|
||||
{ name: "--version", description: "Display version information" },
|
||||
],
|
||||
args: {
|
||||
name: "+FORMAT",
|
||||
description: "Output format beginning with '+', using strftime escapes such as +%Y-%m-%d",
|
||||
isOptional: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default completionSpec;
|
||||
Reference in new issue
Block a user