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.
34 lines
2.4 KiB
JavaScript
34 lines
2.4 KiB
JavaScript
// awk spec — pattern scanning and text processing language
|
|
const completionSpec = {
|
|
name: "awk",
|
|
description: "Pattern scanning and text processing language",
|
|
args: [
|
|
{ name: "program", description: "AWK program text (e.g. '{print $1}')" },
|
|
{ name: "file", description: "Input file(s)", isOptional: true, isVariadic: true, template: "filepaths" },
|
|
],
|
|
options: [
|
|
{ name: "-F", description: "Set field separator", args: { name: "separator", description: "e.g. ',' or '\\t'" } },
|
|
{ name: "-v", description: "Assign a variable (var=value)", args: { name: "var=value" } },
|
|
{ name: "-f", description: "Read AWK program from file", args: { name: "progfile", template: "filepaths" } },
|
|
{ name: "-o", description: "Enable pretty-printed output", args: { name: "file", isOptional: true, template: "filepaths" } },
|
|
{ name: "-b", description: "Treat all input data as single-byte characters (gawk)" },
|
|
{ name: "-c", description: "Run in traditional compatibility mode (gawk)" },
|
|
{ name: "-C", description: "Print copyright information" },
|
|
{ name: "-d", description: "Dump variables to file (gawk)", args: { name: "file", isOptional: true, template: "filepaths" } },
|
|
{ name: "-e", description: "Specify AWK program text", args: { name: "program" } },
|
|
{ name: "-E", description: "Read AWK program from file (like -f but disables command-line variable assignments)", args: { name: "file", template: "filepaths" } },
|
|
{ name: "-i", description: "Include AWK source library", args: { name: "source-file", template: "filepaths" } },
|
|
{ name: "-l", description: "Load dynamic extension (gawk)", args: { name: "ext" } },
|
|
{ name: "-n", description: "Recognize octal and hexadecimal values in input data (gawk)" },
|
|
{ name: "-N", description: "Use locale decimal point for parsing input data (gawk)" },
|
|
{ name: "-p", description: "Profile execution and write to file (gawk)", args: { name: "file", isOptional: true, template: "filepaths" } },
|
|
{ name: "-P", description: "POSIX compatibility mode (gawk)" },
|
|
{ name: "-S", description: "Sandbox mode — disable system(), I/O redirection (gawk)" },
|
|
{ name: "-t", description: "Warn about constructs not portable to the original Unix awk (gawk)" },
|
|
{ name: "--help", description: "Show help" },
|
|
{ name: "--version", description: "Print version information" },
|
|
],
|
|
};
|
|
|
|
export default completionSpec;
|