mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 16:42:19 +00:00
Follow-up review of batch 4 found wording that would show up in the popup and
two upstream spec defects. Local specs already override @withfig/autocomplete,
so the wrong option sets are replaced rather than translated around.
- Add electron/specs/{dig,readlink,base64,htop}.js:
dig fixes the NS label and drops the bogus TTL type; readlink replaces the
stat wording with the real GNU options; base64 moves from BSD -b/-i/-o to
GNU -w and --ignore-garbage; htop documents the -H delay in seconds.
- Correct awk -c (traditional mode) and -t (--lint-old) to match gawk, with
the dictionary keys migrated alongside -n.
- Reword review findings: htop -H highlights exited processes, split -a uses
characters and -b uses KiB/MiB/GiB, dd cbs is a conversion record length,
join -a/-v name the file index and -o covers unpaired lines, basename -a
accepts multiple paths, env -0 ends records with NUL, dig ANY notes RFC 8482,
su -f/-m keep the BSD behavior without hardcoded environment claims, and
uname uses one verb for the kernel fields.
- Extend the zh-TW generator with documented post-conversion fixes (number
bases, extended, instance, header, TLS extension, data) and regenerate.
- Update the batch 2 and batch 4 research notes, and resolve local specs first
in the batch 4 test so it exercises what the app loads.
30 lines
1.4 KiB
JavaScript
30 lines
1.4 KiB
JavaScript
// readlink spec — GNU coreutils. The bundled Fig spec reuses stat wording for
|
|
// the command root and -f, so this local spec describes the real GNU options.
|
|
const completionSpec = {
|
|
name: "readlink",
|
|
description: "Print resolved symbolic links or canonical file names",
|
|
options: [
|
|
{
|
|
name: ["-f", "--canonicalize"],
|
|
description: "Resolve every symbolic link in the given path and print the canonical path (all but the last component must exist)",
|
|
},
|
|
{
|
|
name: ["-e", "--canonicalize-existing"],
|
|
description: "Resolve symbolic links and print the canonical path only if all components exist",
|
|
},
|
|
{
|
|
name: ["-m", "--canonicalize-missing"],
|
|
description: "Resolve symbolic links and print the canonical path even if components are missing",
|
|
},
|
|
{ name: ["-n", "--no-newline"], description: "Do not print a trailing newline" },
|
|
{ name: ["-s", "--strip"], description: "Strip the last component from the path before resolving" },
|
|
{ name: ["-v", "--verbose"], description: "Report every resolved path on standard error" },
|
|
{ name: ["-z", "--zero"], description: "End each output path with NUL instead of a newline" },
|
|
{ name: "--help", description: "Display help text" },
|
|
{ name: "--version", description: "Display version information" },
|
|
],
|
|
args: { name: "file", description: "Symbolic link or path to resolve", isVariadic: true },
|
|
};
|
|
|
|
export default completionSpec;
|