From 3ec32ed73f58fe19debdeef7d9669d285131d1a1 Mon Sep 17 00:00:00 2001 From: abgox Date: Wed, 19 Jun 2024 19:16:17 +0800 Subject: [PATCH] feat(completions): update some completions - b2sum(en-US) - b3sum(en-US) - base32(en-US) - base64(en-US) - basename(en-US) - basenc(en-US) - cksum(en-US) - comm(en-US) - csplit(en-US) --- completions/b2sum/guid.txt | 2 +- completions/b2sum/language/en-US.json | 36 +++++++--- completions/b3sum/guid.txt | 2 +- completions/b3sum/language/en-US.json | 36 ++++++---- completions/base32/guid.txt | 2 +- completions/base32/language/en-US.json | 38 ++++++----- completions/base64/guid.txt | 2 +- completions/base64/language/en-US.json | 38 ++++++----- completions/basename/guid.txt | 2 +- completions/basename/language/en-US.json | 33 ++++----- completions/basenc/guid.txt | 2 +- completions/basenc/language/en-US.json | 35 +++++----- completions/cksum/guid.txt | 2 +- completions/cksum/language/en-US.json | 86 +++++++++++++++++++++--- completions/comm/guid.txt | 2 +- completions/comm/language/en-US.json | 30 +++++---- completions/csplit/guid.txt | 2 +- completions/csplit/language/en-US.json | 48 ++++++++----- 18 files changed, 261 insertions(+), 137 deletions(-) diff --git a/completions/b2sum/guid.txt b/completions/b2sum/guid.txt index 5e23962..a614ab3 100644 --- a/completions/b2sum/guid.txt +++ b/completions/b2sum/guid.txt @@ -1 +1 @@ -5069d6e1-5eb8-4e68-8713-7fe088a9251c +03623c0e-5697-4d78-b53a-d8c1d1865c90 diff --git a/completions/b2sum/language/en-US.json b/completions/b2sum/language/en-US.json index 4a505d9..3a49809 100644 --- a/completions/b2sum/language/en-US.json +++ b/completions/b2sum/language/en-US.json @@ -1,14 +1,5 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ { "name": "-b", "alias": [ @@ -52,6 +43,10 @@ "name": "--strict", "tip": "exit non-zero for improperly formatted checksum lines" }, + { + "name": "--ignore-missing", + "tip": "don't fail or report status for missing files" + }, { "name": "-w", "alias": [ @@ -66,6 +61,27 @@ ], "tip": "end each output line with NUL, not newline" }, + { + "name": "-l", + "alias": [ + "--length" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -l|--length \n", + "digest length in bits;\n", + "must not exceed the max for the blake2 algorithm (512) and must be a multiple of 8" + ] + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ @@ -77,7 +93,7 @@ "info": { "completion_info": { "url": "https://github.com/uutils/coreutils", - "description": "b2sum - Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + "description": "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" } } } diff --git a/completions/b3sum/guid.txt b/completions/b3sum/guid.txt index 6eb9d28..2c148a8 100644 --- a/completions/b3sum/guid.txt +++ b/completions/b3sum/guid.txt @@ -1 +1 @@ -fe1b417b-d7c9-4b0d-a138-04fbd5e41db4 +db89645e-6ef5-4991-be24-687174d38353 diff --git a/completions/b3sum/language/en-US.json b/completions/b3sum/language/en-US.json index f0f21d2..3a49809 100644 --- a/completions/b3sum/language/en-US.json +++ b/completions/b3sum/language/en-US.json @@ -1,14 +1,5 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ { "name": "-b", "alias": [ @@ -52,6 +43,10 @@ "name": "--strict", "tip": "exit non-zero for improperly formatted checksum lines" }, + { + "name": "--ignore-missing", + "tip": "don't fail or report status for missing files" + }, { "name": "-w", "alias": [ @@ -67,9 +62,26 @@ "tip": "end each output line with NUL, not newline" }, { - "name": "--no-names", - "tip": "Omits filenames in the output (option not present in GNU/Coreutils)" + "name": "-l", + "alias": [ + "--length" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -l|--length \n", + "digest length in bits;\n", + "must not exceed the max for the blake2 algorithm (512) and must be a multiple of 8" + ] }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ @@ -81,7 +93,7 @@ "info": { "completion_info": { "url": "https://github.com/uutils/coreutils", - "description": "b3sum - Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + "description": "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" } } } diff --git a/completions/base32/guid.txt b/completions/base32/guid.txt index 82e835e..1f61f40 100644 --- a/completions/base32/guid.txt +++ b/completions/base32/guid.txt @@ -1 +1 @@ -7fe5a23d-6447-40b1-b5e3-1a599e492b9d +1f357602-840b-4e89-9096-a38eb7945e69 diff --git a/completions/base32/language/en-US.json b/completions/base32/language/en-US.json index a018517..c826a5c 100644 --- a/completions/base32/language/en-US.json +++ b/completions/base32/language/en-US.json @@ -1,21 +1,5 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ - { - "name": "-w", - "alias": [ - "-wrap" - ], - "tip": "wrap encoded lines after COLS character (default 76, 0 to disable wrapping)" - }, { "name": "-d", "alias": [ @@ -30,6 +14,26 @@ ], "tip": "when decoding, ignore non-alphabetic characters" }, + { + "name": "-w", + "alias": [ + "-wrap" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -w|-wrap \n", + "wrap encoded lines after COLS character (default 76, 0 to disable wrapping)" + ] + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ @@ -41,7 +45,7 @@ "info": { "completion_info": { "url": "https://github.com/uutils/coreutils", - "description": "base32 - Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + "description": "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" } } } diff --git a/completions/base64/guid.txt b/completions/base64/guid.txt index 82dd7d4..9cff53e 100644 --- a/completions/base64/guid.txt +++ b/completions/base64/guid.txt @@ -1 +1 @@ -6e13f52c-5203-416b-9290-b1274783d733 +f91935fd-90a4-4e18-829d-5b9e29ae5c16 diff --git a/completions/base64/language/en-US.json b/completions/base64/language/en-US.json index b757fb6..c826a5c 100644 --- a/completions/base64/language/en-US.json +++ b/completions/base64/language/en-US.json @@ -1,21 +1,5 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ - { - "name": "-w", - "alias": [ - "-wrap" - ], - "tip": "wrap encoded lines after COLS character (default 76, 0 to disable wrapping)" - }, { "name": "-d", "alias": [ @@ -30,6 +14,26 @@ ], "tip": "when decoding, ignore non-alphabetic characters" }, + { + "name": "-w", + "alias": [ + "-wrap" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -w|-wrap \n", + "wrap encoded lines after COLS character (default 76, 0 to disable wrapping)" + ] + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ @@ -41,7 +45,7 @@ "info": { "completion_info": { "url": "https://github.com/uutils/coreutils", - "description": "base64 - Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + "description": "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" } } } diff --git a/completions/basename/guid.txt b/completions/basename/guid.txt index 421305f..baf526f 100644 --- a/completions/basename/guid.txt +++ b/completions/basename/guid.txt @@ -1 +1 @@ -a6394a82-fb3b-4726-b0c3-6ca6669c18a0 +1d29bbb6-50ed-453c-904f-5edb05133ff3 diff --git a/completions/basename/language/en-US.json b/completions/basename/language/en-US.json index d35e074..e60dc4f 100644 --- a/completions/basename/language/en-US.json +++ b/completions/basename/language/en-US.json @@ -1,28 +1,22 @@ { "options": [ { - "name": "--version", + "name": "-a", "alias": [ - "-V" + "--multiple" ], - "tip": "Show the version." - } - ], - "common_options": [ + "tip": "support multiple arguments and treat each as a NAME" + }, { "name": "-s", "alias": [ "--suffix" ], - "tip": "remove a trailing SUFFIX; implies -a" - }, - { - "name": "-a", - "tip": "support multiple arguments and treat each as a NAME" - }, - { - "name": "--multiple", - "tip": "support multiple arguments and treat each as a NAME" + "symbol": "WriteSpaceTab", + "tip": [ + "U: -s|--suffix \n", + "remove a trailing SUFFIX; implies -a" + ] }, { "name": "-z", @@ -31,6 +25,15 @@ ], "tip": "end each output line with NUL, not newline" }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ diff --git a/completions/basenc/guid.txt b/completions/basenc/guid.txt index 346190c..acf2aa1 100644 --- a/completions/basenc/guid.txt +++ b/completions/basenc/guid.txt @@ -1 +1 @@ -d5c07dbe-2de7-41a7-8b79-9cf1eaf0beae +9700ced4-c4c4-49ca-91ba-370750b9fe3b diff --git a/completions/basenc/language/en-US.json b/completions/basenc/language/en-US.json index 1ec8b69..36b0c8f 100644 --- a/completions/basenc/language/en-US.json +++ b/completions/basenc/language/en-US.json @@ -1,21 +1,5 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ - { - "name": "-w", - "alias": [ - "--wrap" - ], - "tip": "wrap encoded lines after COLS character (default 76, 0 to disable wrapping)" - }, { "name": "-d", "alias": [ @@ -30,6 +14,16 @@ ], "tip": "when decoding, ignore non-alphabetic characters" }, + { + "name": "-w", + "alias": [ + "--wrap" + ], + "tip": [ + "U: -w|--wrap \n", + "wrap encoded lines after COLS character (default 76, 0 to disable wrapping)" + ] + }, { "name": "--base64", "tip": "same as 'base64' program" @@ -66,6 +60,15 @@ "when decoding, input length must be a multiple of 5" ] }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ diff --git a/completions/cksum/guid.txt b/completions/cksum/guid.txt index 7803f6a..b56d983 100644 --- a/completions/cksum/guid.txt +++ b/completions/cksum/guid.txt @@ -1 +1 @@ -b01895d7-271a-4412-9081-6f5cafa68d4a +13426a22-68bc-4ebf-9686-4cbefe99aeb6 diff --git a/completions/cksum/language/en-US.json b/completions/cksum/language/en-US.json index 0a255a1..baab5e1 100644 --- a/completions/cksum/language/en-US.json +++ b/completions/cksum/language/en-US.json @@ -1,25 +1,91 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ { "name": "-a", "alias": [ "--algorithm" ], - "tip": "select the digest type to use. See DIGEST below" + "tip": [ + "U: -a|--algorithm \n", + "select the digest type to use. See DIGEST below\n", + "[possible values: sysv, bsd, crc, md5, sha1, sha224, sha256, sha384, sha512, blake2b, sm3]" + ], + "next": [ + { + "name": "sysv" + }, + { + "name": "bsd" + }, + { + "name": "crc" + }, + { + "name": "md5" + }, + { + "name": "sha1" + }, + { + "name": "sha224" + }, + { + "name": "sha256" + }, + { + "name": "sha384" + }, + { + "name": "sha512" + }, + { + "name": "blake2b" + }, + { + "name": "sm3" + } + ] }, { "name": "--untagged", "tip": "create a reversed style checksum, without digest type" }, + { + "name": "--tag", + "tip": "create a BSD style checksum, undo --untagged (default)" + }, + { + "name": "-l", + "alias": [ + "--length" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -l|--length \n", + "digest length in bits;\n", + "must not exceed the max for the blake2 algorithm and must be a multiple of 8" + ] + }, + { + "name": "--raw", + "tip": "emit a raw binary digest, not hexadecimal" + }, + { + "name": "-b", + "alias": [ + "--base64" + ], + "tip": "emit a base64 digest, not hexadecimal" + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ diff --git a/completions/comm/guid.txt b/completions/comm/guid.txt index 0620ddd..135b313 100644 --- a/completions/comm/guid.txt +++ b/completions/comm/guid.txt @@ -1 +1 @@ -eec74c94-84a5-46ab-8014-e98689e99c14 +1493ad6d-7a10-4ff3-a255-10954341b3a1 diff --git a/completions/comm/language/en-US.json b/completions/comm/language/en-US.json index 32df714..648c132 100644 --- a/completions/comm/language/en-US.json +++ b/completions/comm/language/en-US.json @@ -1,18 +1,5 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ - { - "name": "--output-delimiter", - "tip": "separate columns with STR" - }, { "name": "-1", "tip": "suppress column 1 (lines unique to FILE1)" @@ -25,6 +12,14 @@ "name": "-3", "tip": "suppress column 3 (lines that appear in both files)" }, + { + "name": "--output-delimiter", + "symbol":"WriteSpaceTab", + "tip": [ + "U: --output-delimiter \n", + "separate columns with STR" + ] + }, { "name": "-z", "alias": [ @@ -36,6 +31,15 @@ "name": "--total", "tip": "output a summary" }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [ diff --git a/completions/csplit/guid.txt b/completions/csplit/guid.txt index f04da50..063729c 100644 --- a/completions/csplit/guid.txt +++ b/completions/csplit/guid.txt @@ -1 +1 @@ -f54163a0-b05a-4e82-8969-cdfea208038c +8c8a68c2-8653-4485-a168-5e77a0ac195d diff --git a/completions/csplit/language/en-US.json b/completions/csplit/language/en-US.json index 16fa9ed..3cb2a66 100644 --- a/completions/csplit/language/en-US.json +++ b/completions/csplit/language/en-US.json @@ -1,34 +1,26 @@ { "options": [ - { - "name": "--version", - "alias": [ - "-V" - ], - "tip": "Show the version." - } - ], - "common_options": [ { "name": "-b", "alias": [ "--suffix-format" ], - "tip": "use sprintf FORMAT instead of %02d" + "symbol": "WriteSpaceTab", + "tip": [ + "U: -b|--suffix-format \n", + "use sprintf FORMAT instead of %02d" + ] }, { "name": "-f", "alias": [ "--prefix" ], - "tip": "use PREFIX instead of 'xx'" - }, - { - "name": "-n", - "alias": [ - "--digits" - ], - "tip": "use specified number of digits instead of 2" + "symbol": "WriteSpaceTab", + "tip": [ + "U: -f|--prefix \n", + "use PREFIX instead of 'xx'" + ] }, { "name": "-k", @@ -41,6 +33,17 @@ "name": "--suppress-matched", "tip": "suppress the lines matching PATTERN" }, + { + "name": "-n", + "alias": [ + "--digits" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -n|--digits \n", + "use specified number of digits instead of 2" + ] + }, { "name": "-s", "alias": [ @@ -56,6 +59,15 @@ ], "tip": "remove empty output files" }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ { "name": "--help", "alias": [