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.
25 lines
1.0 KiB
JavaScript
25 lines
1.0 KiB
JavaScript
// base64 spec — GNU coreutils. The bundled Fig spec follows BSD flags
|
|
// (-b line length, -i input file, -o output file); GNU uses -w, -i for
|
|
// ignoring invalid bytes while decoding, and positional files.
|
|
const completionSpec = {
|
|
name: "base64",
|
|
description: "Encode and decode using Base64 representation",
|
|
options: [
|
|
{ name: ["-d", "--decode"], description: "Decode input instead of encoding it" },
|
|
{
|
|
name: ["-i", "--ignore-garbage"],
|
|
description: "When decoding, ignore non-alphabet characters",
|
|
},
|
|
{
|
|
name: ["-w", "--wrap"],
|
|
description: "Wrap encoded lines after the given number of characters (0 disables wrapping)",
|
|
args: { name: "cols", description: "Characters per line; 0 disables wrapping" },
|
|
},
|
|
{ name: "--help", description: "Display help text" },
|
|
{ name: "--version", description: "Display version information" },
|
|
],
|
|
args: { name: "file", description: "File to read; standard input when omitted or '-'", isOptional: true, isVariadic: true },
|
|
};
|
|
|
|
export default completionSpec;
|