From 71042fee3cf7a4bfc067d45a8b8ac6b90d7152af Mon Sep 17 00:00:00 2001 From: abgox Date: Fri, 21 Jun 2024 11:54:00 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20pages=20from=20@=20abgox/PSCom?= =?UTF-8?q?pletions@0027c485c5f5acd66c6d078f0e75466a8920a62e=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- README-CN.md | 7 + README.md | 7 + completions.json | 2 +- completions/fmt/config.json | 5 + completions/fmt/guid.txt | 1 + completions/fmt/language/en-US.json | 154 +++++++++++++++++ completions/fmt/language/zh-CN.json | 20 +++ completions/fold/config.json | 5 + completions/fold/guid.txt | 1 + completions/fold/language/en-US.json | 57 ++++++ completions/fold/language/zh-CN.json | 20 +++ completions/hashsum/config.json | 5 + completions/hashsum/guid.txt | 1 + completions/hashsum/language/en-US.json | 162 ++++++++++++++++++ completions/hashsum/language/zh-CN.json | 20 +++ completions/head/config.json | 5 + completions/head/guid.txt | 1 + completions/head/language/en-US.json | 75 ++++++++ completions/head/language/zh-CN.json | 20 +++ completions/join/config.json | 5 + completions/join/guid.txt | 1 + completions/join/language/en-US.json | 136 +++++++++++++++ completions/join/language/zh-CN.json | 20 +++ completions/link/config.json | 6 + completions/link/guid.txt | 1 + completions/link/language/en-US.json | 29 ++++ completions/link/language/zh-CN.json | 29 ++++ completions/ln/config.json | 5 + completions/ln/guid.txt | 1 + completions/ln/language/en-US.json | 125 ++++++++++++++ completions/ln/language/zh-CN.json | 20 +++ docs/.vitepress/dist/404.html | 2 +- docs/.vitepress/dist/en-US/command/index.html | 2 +- .../dist/en-US/completion/index.html | 2 +- .../dist/en-US/contribute/index.html | 2 +- docs/.vitepress/dist/en-US/index.html | 2 +- docs/.vitepress/dist/hashmap.json | 2 +- docs/.vitepress/dist/zh-CN/command/index.html | 2 +- .../dist/zh-CN/completion/index.html | 2 +- .../dist/zh-CN/contribute/index.html | 2 +- docs/.vitepress/dist/zh-CN/index.html | 2 +- en-US/command/index.html | 2 +- en-US/completion/index.html | 2 +- en-US/contribute/index.html | 2 +- en-US/index.html | 2 +- hashmap.json | 2 +- package-lock.json | 27 ++- zh-CN/command/index.html | 2 +- zh-CN/completion/index.html | 2 +- zh-CN/contribute/index.html | 2 +- zh-CN/index.html | 2 +- 52 files changed, 977 insertions(+), 36 deletions(-) create mode 100644 completions/fmt/config.json create mode 100644 completions/fmt/guid.txt create mode 100644 completions/fmt/language/en-US.json create mode 100644 completions/fmt/language/zh-CN.json create mode 100644 completions/fold/config.json create mode 100644 completions/fold/guid.txt create mode 100644 completions/fold/language/en-US.json create mode 100644 completions/fold/language/zh-CN.json create mode 100644 completions/hashsum/config.json create mode 100644 completions/hashsum/guid.txt create mode 100644 completions/hashsum/language/en-US.json create mode 100644 completions/hashsum/language/zh-CN.json create mode 100644 completions/head/config.json create mode 100644 completions/head/guid.txt create mode 100644 completions/head/language/en-US.json create mode 100644 completions/head/language/zh-CN.json create mode 100644 completions/join/config.json create mode 100644 completions/join/guid.txt create mode 100644 completions/join/language/en-US.json create mode 100644 completions/join/language/zh-CN.json create mode 100644 completions/link/config.json create mode 100644 completions/link/guid.txt create mode 100644 completions/link/language/en-US.json create mode 100644 completions/link/language/zh-CN.json create mode 100644 completions/ln/config.json create mode 100644 completions/ln/guid.txt create mode 100644 completions/ln/language/en-US.json create mode 100644 completions/ln/language/zh-CN.json diff --git a/404.html b/404.html index d663155..34c9e77 100644 --- a/404.html +++ b/404.html @@ -15,7 +15,7 @@
- + \ No newline at end of file diff --git a/README-CN.md b/README-CN.md index efd4261..822d948 100644 --- a/README-CN.md +++ b/README-CN.md @@ -194,9 +194,16 @@ |[du](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(6%)~~**|Estimate file space usage.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[env](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(16.67%)~~**|Set each NAME to VALUE in the environment and run COMMAND.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[factor](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(60%)~~**|Print the prime factors of the given NUMBER(s).
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| +|[fmt](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(14.63%)~~**|Reformat paragraphs from input files (or stdin) to stdout.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[fnm](https://github.com/Schniz/fnm)|**en-US**
**~~zh-CN(14.52%)~~**|快速、简单的 Node.js 版本管理器,使用 Rust 构建| +|[fold](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(33.33%)~~**|Writes each file (or standard input if no files are given) to standard output whilst breaking long lines.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[git](https://git-scm.com)|**en-US**
**zh-CN(100%)**|Git - 版本控制系统| +|[hashsum](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(8.57%)~~**|Compute and check message digests.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| +|[head](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(24%)~~**|Print the first 10 lines of each `FILE` to standard output.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| +|[join](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(13.04%)~~**|For each pair of input lines with identical join fields, write a line to standard output.
The default join field is the first, delimited by blanks.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[kubectl](https://kubernetes.io/zh-cn/docs/reference/kubectl/)|**en-US**
**zh-CN(100%)**|Kubernetes 又称 K8s,是一个开源系统,用于自动化部署、扩展和管理容器化应用程序。
kubectl 是它的命令行工具| +|[link](https://github.com/uutils/coreutils)|**en-US**
**zh-CN(100%)**|调用 link 函数为现有的 FILE1 创建名为 FILE2 的链接。
来源于 [uutils/coreutils](https://github.com/uutils/coreutils)| +|[ln](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(14.63%)~~**|Make links between files.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[ngrok](https://ngrok.com/)|**en-US**
**zh-CN(100%)**|ngrok - 面向开发人员的统一入口平台。
将 localhost 连接到 Internet 以测试应用程序和 API。| |[npm](https://www.npmjs.com/)|**en-US**
**zh-CN(100%)**|npm - 软件包管理器| |[nrm](https://github.com/Pana/nrm)|**en-US**
**zh-CN(100%)**|nrm - npm 镜像源管理| diff --git a/README.md b/README.md index c249f3e..8e3766f 100644 --- a/README.md +++ b/README.md @@ -189,9 +189,16 @@ |[du](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(6%)~~**|Estimate file space usage.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[env](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(16.67%)~~**|Set each NAME to VALUE in the environment and run COMMAND.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[factor](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(60%)~~**|Print the prime factors of the given NUMBER(s).
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| +|[fmt](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(14.63%)~~**|Reformat paragraphs from input files (or stdin) to stdout.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[fnm](https://github.com/Schniz/fnm)|**en-US**
**~~zh-CN(14.52%)~~**|Fast and simple Node.js version manager, built in Rust.| +|[fold](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(33.33%)~~**|Writes each file (or standard input if no files are given) to standard output whilst breaking long lines.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[git](https://git-scm.com)|**en-US**
**zh-CN(100%)**|Git - Version control system| +|[hashsum](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(8.57%)~~**|Compute and check message digests.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| +|[head](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(24%)~~**|Print the first 10 lines of each `FILE` to standard output.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| +|[join](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(13.04%)~~**|For each pair of input lines with identical join fields, write a line to standard output.
The default join field is the first, delimited by blanks.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[kubectl](https://kubernetes.io/docs/reference/kubectl/)|**en-US**
**zh-CN(100%)**|Kubernetes, also known as K8s, is an open source system for automating deployment, scaling, and management of containerized applications.
kubectl is its command-line tool.| +|[link](https://github.com/uutils/coreutils)|**en-US**
**zh-CN(100%)**|Call the link function to create a link named FILE2 to an existing FILE1.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| +|[ln](https://github.com/uutils/coreutils)|**en-US**
**~~zh-CN(14.63%)~~**|Make links between files.
Come from [uutils/coreutils](https://github.com/uutils/coreutils)| |[ngrok](https://ngrok.com/)|**en-US**
**zh-CN(100%)**|ngrok - Unified Ingress Platform for developers.
Connect localhost to the internet for testing applications and APIs.| |[npm](https://www.npmjs.com/)|**en-US**
**zh-CN(100%)**|npm - package manager| |[nrm](https://github.com/Pana/nrm)|**en-US**
**zh-CN(100%)**|nrm - npm registry manager| diff --git a/completions.json b/completions.json index 83a396a..7e9b516 100644 --- a/completions.json +++ b/completions.json @@ -1 +1 @@ -{"list":["7z","arch","b2sum","b3sum","base32","base64","basename","basenc","bun","cargo","chfs","choco","cksum","comm","conda","csplit","cut","date","dd","deno","df","dircolors","dirname","docker","du","env","factor","fnm","git","kubectl","ngrok","npm","nrm","nvm","pip","pnpm","psc","python","scoop","volta","winget","wsl","wt","yarn"]} +{"list":["7z","arch","b2sum","b3sum","base32","base64","basename","basenc","bun","cargo","chfs","choco","cksum","comm","conda","csplit","cut","date","dd","deno","df","dircolors","dirname","docker","du","env","factor","fmt","fnm","fold","git","hashsum","head","join","kubectl","link","ln","ngrok","npm","nrm","nvm","pip","pnpm","psc","python","scoop","volta","winget","wsl","wt","yarn"]} diff --git a/completions/fmt/config.json b/completions/fmt/config.json new file mode 100644 index 0000000..15366b1 --- /dev/null +++ b/completions/fmt/config.json @@ -0,0 +1,5 @@ +{ + "language": [ + "en-US" + ] +} diff --git a/completions/fmt/guid.txt b/completions/fmt/guid.txt new file mode 100644 index 0000000..b5cb87c --- /dev/null +++ b/completions/fmt/guid.txt @@ -0,0 +1 @@ +5b3a6c0d-3641-42d3-b801-ce08746c2bdb diff --git a/completions/fmt/language/en-US.json b/completions/fmt/language/en-US.json new file mode 100644 index 0000000..e92edcb --- /dev/null +++ b/completions/fmt/language/en-US.json @@ -0,0 +1,154 @@ +{ + "options": [ + { + "name": "-c", + "alias": [ + "--crown-margin" + ], + "tip": [ + "First and second line of paragraph may have different indentations,\n", + "in which case the first line's indentation is preserved, and each subsequent line's indentation matches the second line." + ] + }, + { + "name": "-t", + "alias": [ + "--tagged-paragraph" + ], + "tip": "Like -c, except that the first and second line of a paragraph *must* have different indentation or they are treated as separate paragraphs." + }, + { + "name": "-m", + "alias": [ + "--preserve-headers" + ], + "tip": [ + "Attempt to detect and preserve mail headers in the input.\n", + "Be careful when combining this flag with -p." + ] + }, + { + "name": "-s", + "alias": [ + "--split-only" + ], + "tip": "Split lines only, do not reflow." + }, + { + "name": "-u", + "alias": [ + "--uniform-spacing" + ], + "tip": [ + "Insert exactly one space between words, and two between sentences.\n", + "Sentence breaks in the input are detected as [?!.] followed by two spaces or a newline;\n", + "other punctuation is not interpreted as a sentence break." + ] + }, + { + "name": "-p", + "alias": [ + "--prefix" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -p|--prefix \n", + "Reformat only lines beginning with PREFIX, reattaching PREFIX to reformatted lines.\n", + "Unless -x is specified, leading whitespace will be ignored when matching PREFIX." + ] + }, + { + "name": "-P", + "alias": [ + "--skip-prefix" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -P|--skip-prefix \n", + "Do not reformat lines beginning with PSKIP.\n", + "Unless -X is specified, leading whitespace will be ignored when matching PSKIP" + ] + }, + { + "name": "-x", + "alias": [ + "--exact-prefix" + ], + "tip": "PREFIX must match at the beginning of the line with no preceding whitespace." + }, + { + "name": "-X", + "alias": [ + "--exact-skip-prefix" + ], + "tip": "PSKIP must match at the beginning of the line with no preceding whitespace." + }, + { + "name": "-w", + "alias": [ + "--width" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -w|--width \n", + "Fill output lines up to a maximum of WIDTH columns, default 75.\n", + "This can be specified as a negative number in the first argument." + ] + }, + { + "name": "-g", + "alias": [ + "--goal" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -g|--goal \n", + "Goal width, default of 93% of WIDTH.\n", + "Must be less than or equal to WIDTH." + ] + }, + { + "name": "-q", + "alias": [ + "--quick" + ], + "tip": "Break lines more quickly at the expense of a potentially more ragged appearance." + }, + { + "name": "-T", + "alias": [ + "--tab-width" + ], + "tip": [ + "U: -T|--tab-width \n", + "Treat tabs as TABWIDTH spaces for determining line length, default 8.\n", + "Note that this is used only for calculating line lengths; tabs are preserved in the output." + ] + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "Show help." + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "Reformat paragraphs from input files (or stdin) to stdout.\n", + "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/fmt/language/zh-CN.json b/completions/fmt/language/zh-CN.json new file mode 100644 index 0000000..a6404da --- /dev/null +++ b/completions/fmt/language/zh-CN.json @@ -0,0 +1,20 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "显示版本信息" + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "显示帮助信息" + } + ] +} diff --git a/completions/fold/config.json b/completions/fold/config.json new file mode 100644 index 0000000..15366b1 --- /dev/null +++ b/completions/fold/config.json @@ -0,0 +1,5 @@ +{ + "language": [ + "en-US" + ] +} diff --git a/completions/fold/guid.txt b/completions/fold/guid.txt new file mode 100644 index 0000000..bc7e9ec --- /dev/null +++ b/completions/fold/guid.txt @@ -0,0 +1 @@ +82b81249-93b1-4f55-be12-1a36eabad43c diff --git a/completions/fold/language/en-US.json b/completions/fold/language/en-US.json new file mode 100644 index 0000000..e2239b3 --- /dev/null +++ b/completions/fold/language/en-US.json @@ -0,0 +1,57 @@ +{ + "options": [ + { + "name": "-b", + "alias": [ + "--bytes" + ], + "tip": [ + "count using bytes rather than columns\n", + "(meaning control characters such as newline are not treated specially)" + ] + }, + { + "name": "-s", + "alias": [ + "--spaces" + ], + "tip": "break lines at word boundaries rather than a hard cut-off" + }, + { + "name": "-w", + "alias": [ + "--width" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -w|--width \n", + "set WIDTH as the maximum line width rather than 80" + ] + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "Show help." + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "Writes each file (or standard input if no files are given) to standard output whilst breaking long lines.\n", + "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/fold/language/zh-CN.json b/completions/fold/language/zh-CN.json new file mode 100644 index 0000000..a6404da --- /dev/null +++ b/completions/fold/language/zh-CN.json @@ -0,0 +1,20 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "显示版本信息" + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "显示帮助信息" + } + ] +} diff --git a/completions/hashsum/config.json b/completions/hashsum/config.json new file mode 100644 index 0000000..15366b1 --- /dev/null +++ b/completions/hashsum/config.json @@ -0,0 +1,5 @@ +{ + "language": [ + "en-US" + ] +} diff --git a/completions/hashsum/guid.txt b/completions/hashsum/guid.txt new file mode 100644 index 0000000..a0da664 --- /dev/null +++ b/completions/hashsum/guid.txt @@ -0,0 +1 @@ +6f68397d-b515-42ec-9bac-0c1a67330bf7 diff --git a/completions/hashsum/language/en-US.json b/completions/hashsum/language/en-US.json new file mode 100644 index 0000000..4fee619 --- /dev/null +++ b/completions/hashsum/language/en-US.json @@ -0,0 +1,162 @@ +{ + "options": [ + { + "name": "-b", + "alias": [ + "--binary" + ], + "tip": "read in binary mode (default)" + }, + { + "name": "-c", + "alias": [ + "--check" + ], + "tip": "read hashsums from the FILEs and check them" + }, + { + "name": "--tag", + "tip": "create a BSD-style checksum" + }, + { + "name": "-t", + "alias": [ + "--text" + ], + "tip": "read in text mode" + }, + { + "name": "-q", + "alias": [ + "--quiet" + ], + "tip": "don't print OK for each successfully verified file" + }, + { + "name": "-s", + "alias": [ + "--status" + ], + "tip": "don't output anything, status code shows success" + }, + { + "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": [ + "--warn" + ], + "tip": "warn about improperly formatted checksum lines" + }, + { + "name": "-z", + "alias": [ + "--zero" + ], + "tip": "end each output line with NUL, not newline" + }, + { + "name": "--bits", + "symbol": "WriteSpaceTab", + "tip": [ + "U: --bits \n", + "set the size of the output (only for SHAKE)" + ] + }, + { + "name": "--no-names", + "tip": "Omits filenames in the output (option not present in GNU/Coreutils)" + }, + { + "name": "--md5", + "tip": "work with MD5" + }, + { + "name": "--sha1", + "tip": "work with SHA1" + }, + { + "name": "--sha224", + "tip": "work with SHA224" + }, + { + "name": "--sha256", + "tip": "work with SHA256" + }, + { + "name": "--sha384", + "tip": "work with SHA384" + }, + { + "name": "--sha512", + "tip": "work with SHA512" + }, + { + "name": "--sha3", + "tip": "work with SHA3" + }, + { + "name": "--sha3-224", + "tip": "work with SHA3-224" + }, + { + "name": "--sha3-256", + "tip": "work with SHA3-256" + }, + { + "name": "--sha3-384 ", + "tip": "work with SHA3-384" + }, + { + "name": "--sha3-512", + "tip": "work with SHA3-512" + }, + { + "name": "--shake128", + "tip": "work with SHAKE128 using BITS for the output size" + }, + { + "name": "--shake256", + "tip": "work with SHAKE256 using BITS for the output size" + }, + { + "name": "--b2sum", + "tip": "work with BLAKE2" + }, + { + "name": "--b3sum", + "tip": "work with BLAKE3" + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "Show help." + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "Compute and check message digests.\n", + "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/hashsum/language/zh-CN.json b/completions/hashsum/language/zh-CN.json new file mode 100644 index 0000000..a6404da --- /dev/null +++ b/completions/hashsum/language/zh-CN.json @@ -0,0 +1,20 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "显示版本信息" + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "显示帮助信息" + } + ] +} diff --git a/completions/head/config.json b/completions/head/config.json new file mode 100644 index 0000000..15366b1 --- /dev/null +++ b/completions/head/config.json @@ -0,0 +1,5 @@ +{ + "language": [ + "en-US" + ] +} diff --git a/completions/head/guid.txt b/completions/head/guid.txt new file mode 100644 index 0000000..8128adc --- /dev/null +++ b/completions/head/guid.txt @@ -0,0 +1 @@ +3c9daac3-07f5-495a-9a96-0afc58b2bc14 diff --git a/completions/head/language/en-US.json b/completions/head/language/en-US.json new file mode 100644 index 0000000..ca47975 --- /dev/null +++ b/completions/head/language/en-US.json @@ -0,0 +1,75 @@ +{ + "options": [ + { + "name": "-c", + "alias": [ + "--bytes" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -c|--bytes <[-]NUM>\n", + "print the first NUM bytes of each file;\n", + "with the leading '-', print all but the last NUM bytes of each file" + ] + }, + { + "name": "-n", + "alias": [ + "--lines" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -n|--lines <[-]NUM>\n", + "print the first NUM lines instead of the first 10;\n", + "with the leading '-', print all but the last NUM lines of each file" + ] + }, + { + "name": "-q", + "alias": [ + "--quiet", + "--silent" + ], + "tip": "never print headers giving file names" + }, + { + "name": "-v", + "alias": [ + "--verbose" + ], + "tip": "always print headers giving file names" + }, + { + "name": "-z", + "alias": [ + "--zero-terminated" + ], + "tip": "line delimiter is NUL, not newline" + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "Show help." + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "Print the first 10 lines of each `FILE` to standard output.\n", + "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/head/language/zh-CN.json b/completions/head/language/zh-CN.json new file mode 100644 index 0000000..a6404da --- /dev/null +++ b/completions/head/language/zh-CN.json @@ -0,0 +1,20 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "显示版本信息" + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "显示帮助信息" + } + ] +} diff --git a/completions/join/config.json b/completions/join/config.json new file mode 100644 index 0000000..15366b1 --- /dev/null +++ b/completions/join/config.json @@ -0,0 +1,5 @@ +{ + "language": [ + "en-US" + ] +} diff --git a/completions/join/guid.txt b/completions/join/guid.txt new file mode 100644 index 0000000..1e11e93 --- /dev/null +++ b/completions/join/guid.txt @@ -0,0 +1 @@ +8e75feb9-9efd-4e74-8a3d-df7c1254fc9b diff --git a/completions/join/language/en-US.json b/completions/join/language/en-US.json new file mode 100644 index 0000000..1e33d6d --- /dev/null +++ b/completions/join/language/en-US.json @@ -0,0 +1,136 @@ +{ + "options": [ + { + "name": "-a", + "tip": [ + "U: -a \n", + "also print unpairable lines from file FILENUM, where FILENUM is 1 or 2, corresponding to FILE1 or FILE2\n", + "[possible values: 1, 2]" + ], + "next": [ + { + "name": "1" + }, + { + "name": "2" + } + ] + }, + { + "name": "-v", + "tip": [ + "U: -v \n", + "like -a FILENUM, but suppress joined output lines\n", + "[possible values: 1, 2]" + ], + "next": [ + { + "name": "1" + }, + { + "name": "2" + } + ] + }, + { + "name": "-e", + "symbol": "WriteSpaceTab", + "tip": [ + "U: -e \n", + "replace missing input fields with EMPTY" + ] + }, + { + "name": "-i", + "alias": [ + "--ignore-case" + ], + "tip": "ignore differences in case when comparing fields" + }, + { + "name": "-j", + "symbol": "WriteSpaceTab", + "tip": [ + "U: -j \n", + "equivalent to '-1 FIELD -2 FIELD'" + ] + }, + { + "name": "-o", + "symbol": "WriteSpaceTab", + "tip": [ + "U: -o \n", + "obey FORMAT while constructing output line" + ] + }, + { + "name": "-t", + "symbol": "WriteSpaceTab", + "tip": [ + "U: -t \n", + "use CHAR as input and output field separator" + ] + }, + { + "name": "-1", + "symbol": "WriteSpaceTab", + "tip": [ + "U: -1 \n", + "join on this FIELD of file 1" + ] + }, + { + "name": "-2", + "symbol": "WriteSpaceTab", + "tip": [ + "U: -2 \n", + "join on this FIELD of file 2" + ] + }, + { + "name": "--check-order", + "tip": "check that the input is correctly sorted, even if all input lines are pairable" + }, + { + "name": "--nocheck-order", + "tip": "do not check that the input is correctly sorted" + }, + { + "name": "--header", + "tip": "treat the first line in each file as field headers, print them without trying to pair them" + }, + { + "name": "-z", + "alias": [ + "--zero-terminated" + ], + "tip": "line delimiter is NUL, not newline" + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "Show help." + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "For each pair of input lines with identical join fields, write a line to standard output.\n", + "The default join field is the first, delimited by blanks.\n", + "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/join/language/zh-CN.json b/completions/join/language/zh-CN.json new file mode 100644 index 0000000..a6404da --- /dev/null +++ b/completions/join/language/zh-CN.json @@ -0,0 +1,20 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "显示版本信息" + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "显示帮助信息" + } + ] +} diff --git a/completions/link/config.json b/completions/link/config.json new file mode 100644 index 0000000..0a77759 --- /dev/null +++ b/completions/link/config.json @@ -0,0 +1,6 @@ +{ + "language": [ + "en-US", + "zh-CN" + ] +} diff --git a/completions/link/guid.txt b/completions/link/guid.txt new file mode 100644 index 0000000..02cc0e7 --- /dev/null +++ b/completions/link/guid.txt @@ -0,0 +1 @@ +9d728679-f374-4172-84b3-2e16f69470e2 diff --git a/completions/link/language/en-US.json b/completions/link/language/en-US.json new file mode 100644 index 0000000..c9f5cbf --- /dev/null +++ b/completions/link/language/en-US.json @@ -0,0 +1,29 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "Show help." + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "Call the link function to create a link named FILE2 to an existing FILE1.\n", + "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/link/language/zh-CN.json b/completions/link/language/zh-CN.json new file mode 100644 index 0000000..99e4667 --- /dev/null +++ b/completions/link/language/zh-CN.json @@ -0,0 +1,29 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "显示版本信息" + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "显示帮助信息" + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "调用 link 函数为现有的 FILE1 创建名为 FILE2 的链接。\n", + "来源于 [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/ln/config.json b/completions/ln/config.json new file mode 100644 index 0000000..15366b1 --- /dev/null +++ b/completions/ln/config.json @@ -0,0 +1,5 @@ +{ + "language": [ + "en-US" + ] +} diff --git a/completions/ln/guid.txt b/completions/ln/guid.txt new file mode 100644 index 0000000..6d212ca --- /dev/null +++ b/completions/ln/guid.txt @@ -0,0 +1 @@ +48ecff55-b1f6-4829-8147-8f87f7675528 diff --git a/completions/ln/language/en-US.json b/completions/ln/language/en-US.json new file mode 100644 index 0000000..bd1b38b --- /dev/null +++ b/completions/ln/language/en-US.json @@ -0,0 +1,125 @@ +{ + "options": [ + { + "name": "--backup", + "tip": [ + "U: --backup[=]\n", + "make a backup of each existing destination file" + ] + }, + { + "name": "-b", + "tip": "like --backup but does not accept an argument" + }, + { + "name": "-f", + "alias": [ + "--force" + ], + "tip": "remove existing destination files" + }, + { + "name": "-i", + "alias": [ + "--interactive" + ], + "tip": "prompt whether to remove existing destination files" + }, + { + "name": "-n", + "alias": [ + "--no-dereference" + ], + "tip": "treat LINK_NAME as a normal file if it is a symbolic link to a directory" + }, + { + "name": "-L", + "alias": [ + "--logical" + ], + "tip": "follow TARGETs that are symbolic links" + }, + { + "name": "-P", + "alias": [ + "--physical" + ], + "tip": "make hard links directly to symbolic links" + }, + { + "name": "-s", + "alias": [ + "--symbolic" + ], + "tip": "make symbolic links instead of hard links" + }, + { + "name": "-S", + "alias": [ + "--suffix" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -S|--suffix \n", + "override the usual backup suffix" + ] + }, + { + "name": "-t", + "alias": [ + "--target-directory" + ], + "symbol": "WriteSpaceTab", + "tip": [ + "U: -t|--target-directory \n", + "specify the DIRECTORY in which to create the links" + ] + }, + { + "name": "-T", + "alias": [ + "--no-target-directory" + ], + "tip": "treat LINK_NAME as a normal file always" + }, + { + "name": "-r", + "alias": [ + "--relative" + ], + "tip": "create symbolic links relative to link location" + }, + { + "name": "-v", + "alias": [ + "--verbose" + ], + "tip": "print name of each linked file" + }, + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "Show the version." + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "Show help." + } + ], + "info": { + "completion_info": { + "url": "https://github.com/uutils/coreutils", + "description": [ + "Make links between files.\n", + "Come from [uutils/coreutils](https://github.com/uutils/coreutils)" + ] + } + } +} diff --git a/completions/ln/language/zh-CN.json b/completions/ln/language/zh-CN.json new file mode 100644 index 0000000..a6404da --- /dev/null +++ b/completions/ln/language/zh-CN.json @@ -0,0 +1,20 @@ +{ + "options": [ + { + "name": "--version", + "alias": [ + "-V" + ], + "tip": "显示版本信息" + } + ], + "common_options": [ + { + "name": "--help", + "alias": [ + "-h" + ], + "tip": "显示帮助信息" + } + ] +} diff --git a/docs/.vitepress/dist/404.html b/docs/.vitepress/dist/404.html index d663155..34c9e77 100644 --- a/docs/.vitepress/dist/404.html +++ b/docs/.vitepress/dist/404.html @@ -15,7 +15,7 @@
- + \ No newline at end of file diff --git a/docs/.vitepress/dist/en-US/command/index.html b/docs/.vitepress/dist/en-US/command/index.html index a8e1150..198ec64 100644 --- a/docs/.vitepress/dist/en-US/command/index.html +++ b/docs/.vitepress/dist/en-US/command/index.html @@ -18,7 +18,7 @@
Skip to content
  • Waiting...
    • You can trigger completion by running psc, then learn about them by completion tip.
    • View the README file of PSCompletions.
    • Enter 'psc' and press 'Enter' to print some module information
- + \ No newline at end of file diff --git a/docs/.vitepress/dist/en-US/completion/index.html b/docs/.vitepress/dist/en-US/completion/index.html index 8f52f6c..6bb151b 100644 --- a/docs/.vitepress/dist/en-US/completion/index.html +++ b/docs/.vitepress/dist/en-US/completion/index.html @@ -97,7 +97,7 @@ ] } ] - + \ No newline at end of file diff --git a/docs/.vitepress/dist/en-US/contribute/index.html b/docs/.vitepress/dist/en-US/contribute/index.html index e102030..e142733 100644 --- a/docs/.vitepress/dist/en-US/contribute/index.html +++ b/docs/.vitepress/dist/en-US/contribute/index.html @@ -18,7 +18,7 @@
Skip to content

About PR (Pull Request)

  1. Prerequisite: You should read About the structure of completion json file first.
  2. You should fork PSCompletions, and clone to your machine.
  3. After Changing, you should commit and create the PR.

1. Update the content of completion json file

  • Patch some tips of the completion.(tip attributes)
  • Add some missing parts for the completion.
    • The missing parts can be viewed by using the compareJson.ps1 script.
      • Take git for example.
      • You can view the missing parts of the zh-CN.json file (Compared to the en-US.json file) by using the following command.
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json .\completions\git\language\en-US.json
      • If it's compared to the first language configured in config.json, the second parameter can also be omitted.
        • It's usually compared to the first language, so the following commands are the most common usage.
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json

2. Add language

  1. In the completions directory, select the language you want to add.
  2. Add the language identifier to the language in the config.json file.
  3. Add a json file with the same name as the language identifier in the language directory.
    • You can copy the original json file and rename it.
  4. Translate the contents of the tip attribute.

3. Add a new completion

  1. Run it in the project root directory. .\script\create.ps1
    • For the convenience of debugging, create.ps1 will link the created completion directory to the completions directory of the PSCompletions module.
      • So PSCompletions module must be installed and imported before running create.ps1.
        • Install-Module PSCompletions -Scope CurrentUser
        • Import-Module PSCompletions
    • After the PR is committed and merged, you should use psc rm to remove this completion and psc add to re-add it.
  2. Follow the prompts.
  3. Modify the new completion.
  4. Modify config.json as required.
- + \ No newline at end of file diff --git a/docs/.vitepress/dist/en-US/index.html b/docs/.vitepress/dist/en-US/index.html index 2dc111a..ba0954c 100644 --- a/docs/.vitepress/dist/en-US/index.html +++ b/docs/.vitepress/dist/en-US/index.html @@ -18,7 +18,7 @@
Skip to content

PSCompletions

A completion manager for better and simpler use completions in PowerShell.

- + \ No newline at end of file diff --git a/docs/.vitepress/dist/hashmap.json b/docs/.vitepress/dist/hashmap.json index 3f32ae4..fb15630 100644 --- a/docs/.vitepress/dist/hashmap.json +++ b/docs/.vitepress/dist/hashmap.json @@ -1 +1 @@ -{"zh-cn_index.md":"C0w9X0tu","en-us_index.md":"Bn3Gy4wd","en-us_completion_index.md":"Dp0rBnlX","zh-cn_completion_index.md":"DJyr-Og9","en-us_contribute_index.md":"CMLJWIsQ","zh-cn_command_index.md":"BpMYpBo4","en-us_command_index.md":"DSxpJclk","zh-cn_contribute_index.md":"BriTO8O-"} +{"zh-cn_index.md":"C0w9X0tu","en-us_contribute_index.md":"CMLJWIsQ","en-us_command_index.md":"DSxpJclk","zh-cn_contribute_index.md":"BriTO8O-","en-us_completion_index.md":"Dp0rBnlX","zh-cn_completion_index.md":"DJyr-Og9","zh-cn_command_index.md":"BpMYpBo4","en-us_index.md":"Bn3Gy4wd"} diff --git a/docs/.vitepress/dist/zh-CN/command/index.html b/docs/.vitepress/dist/zh-CN/command/index.html index cee3713..4e5e36d 100644 --- a/docs/.vitepress/dist/zh-CN/command/index.html +++ b/docs/.vitepress/dist/zh-CN/command/index.html @@ -18,7 +18,7 @@
Skip to content
  • 等待补充...
    • 可以使用 psc 触发补全,通过补全提示信息了解模块命令
    • 通过项目的 README 了解
    • 输入 psc 后 按下 enter,将会打印一些模块信息
- + \ No newline at end of file diff --git a/docs/.vitepress/dist/zh-CN/completion/index.html b/docs/.vitepress/dist/zh-CN/completion/index.html index e8a73bf..4a537bb 100644 --- a/docs/.vitepress/dist/zh-CN/completion/index.html +++ b/docs/.vitepress/dist/zh-CN/completion/index.html @@ -97,7 +97,7 @@ ] } ] - + \ No newline at end of file diff --git a/docs/.vitepress/dist/zh-CN/contribute/index.html b/docs/.vitepress/dist/zh-CN/contribute/index.html index a353911..dee1512 100644 --- a/docs/.vitepress/dist/zh-CN/contribute/index.html +++ b/docs/.vitepress/dist/zh-CN/contribute/index.html @@ -18,7 +18,7 @@
Skip to content

关于 PR (Pull Request)

  1. 前提: 你应该先阅读 关于补全的 json 文件结构
  2. 你应该 fork PSCompletions 仓库,克隆到本地进行修改
  3. 只要到补全文件进行了修改,都需要更新其目录下的 guid.txt 文件
    • 你可以手动运行 New-Guid 生成,将值填入此文件中
    • 也可以直接运行 .\script\updateGuid.ps1,在弹出的 PowerShell 列表框中,选择此补全,并应用修改即可
  4. 修改完成后,提交并创建 PR

1. 更新 json 文件内容

  • 完善补全的一些提示信息(tip 属性)
  • 添加补全的一些缺失的命令
    • 可以通过 .\script\compareJson.ps1 脚本来查看未完成的部分
      • git 举例
      • 你可以使用以下命令查看 zh-CN.json 文件缺少的属性(相较于 en-US.json 文件)
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json .\completions\git\language\en-US.json
      • 如果是和 config.json 中配置的第一个语言对比,也可以省略第二个参数
        • 一般都是和第一个语言对比,所以以下命令是最常见的用法
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json

2. 添加语言

  1. 在项目的 completions 目录中找到你想要添加语言的补全
  2. 在其目录下的 config.json 文件中的 language 属性里添加像 zh-CN 这样的语言标识符
  3. language 目录下添加与语言标识符同名的 json 文件
    • 你可以将原有的一个 json 文件直接复制,改名即可
  4. 翻译其中的 tip 属性的内容即可

3. 添加一个全新的命令补全

  1. 在项目根目录下运行 .\script\create.ps1
    • 为了调试方便,create.ps1 会将创建的补全目录链接到实际 PSCompletionscompletions 目录下
      • 因此,必须先安装并导入 PSCompletions 模块,然后再运行 create.ps1
        • Install-Module PSCompletions -Scope CurrentUser
        • Import-Module PSCompletions
    • 当提交 PR 并被合并后,你应该使用 psc rm 移除掉此补全,并使用 psc add 重新添加
  2. 根据提示进行操作
  3. 修改新创建的补全
  4. 根据需求修改 config.json
- + \ No newline at end of file diff --git a/docs/.vitepress/dist/zh-CN/index.html b/docs/.vitepress/dist/zh-CN/index.html index 5b55853..853d1b9 100644 --- a/docs/.vitepress/dist/zh-CN/index.html +++ b/docs/.vitepress/dist/zh-CN/index.html @@ -18,7 +18,7 @@
Skip to content

PSCompletions

一个补全管理模块,它能让你在 PowerShell 中更简单、更方便地使用命令补全。

- + \ No newline at end of file diff --git a/en-US/command/index.html b/en-US/command/index.html index a8e1150..198ec64 100644 --- a/en-US/command/index.html +++ b/en-US/command/index.html @@ -18,7 +18,7 @@
Skip to content
  • Waiting...
    • You can trigger completion by running psc, then learn about them by completion tip.
    • View the README file of PSCompletions.
    • Enter 'psc' and press 'Enter' to print some module information
- + \ No newline at end of file diff --git a/en-US/completion/index.html b/en-US/completion/index.html index 8f52f6c..6bb151b 100644 --- a/en-US/completion/index.html +++ b/en-US/completion/index.html @@ -97,7 +97,7 @@ ] } ] - + \ No newline at end of file diff --git a/en-US/contribute/index.html b/en-US/contribute/index.html index e102030..e142733 100644 --- a/en-US/contribute/index.html +++ b/en-US/contribute/index.html @@ -18,7 +18,7 @@
Skip to content

About PR (Pull Request)

  1. Prerequisite: You should read About the structure of completion json file first.
  2. You should fork PSCompletions, and clone to your machine.
  3. After Changing, you should commit and create the PR.

1. Update the content of completion json file

  • Patch some tips of the completion.(tip attributes)
  • Add some missing parts for the completion.
    • The missing parts can be viewed by using the compareJson.ps1 script.
      • Take git for example.
      • You can view the missing parts of the zh-CN.json file (Compared to the en-US.json file) by using the following command.
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json .\completions\git\language\en-US.json
      • If it's compared to the first language configured in config.json, the second parameter can also be omitted.
        • It's usually compared to the first language, so the following commands are the most common usage.
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json

2. Add language

  1. In the completions directory, select the language you want to add.
  2. Add the language identifier to the language in the config.json file.
  3. Add a json file with the same name as the language identifier in the language directory.
    • You can copy the original json file and rename it.
  4. Translate the contents of the tip attribute.

3. Add a new completion

  1. Run it in the project root directory. .\script\create.ps1
    • For the convenience of debugging, create.ps1 will link the created completion directory to the completions directory of the PSCompletions module.
      • So PSCompletions module must be installed and imported before running create.ps1.
        • Install-Module PSCompletions -Scope CurrentUser
        • Import-Module PSCompletions
    • After the PR is committed and merged, you should use psc rm to remove this completion and psc add to re-add it.
  2. Follow the prompts.
  3. Modify the new completion.
  4. Modify config.json as required.
- + \ No newline at end of file diff --git a/en-US/index.html b/en-US/index.html index 2dc111a..ba0954c 100644 --- a/en-US/index.html +++ b/en-US/index.html @@ -18,7 +18,7 @@
Skip to content

PSCompletions

A completion manager for better and simpler use completions in PowerShell.

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 3f32ae4..fb15630 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"zh-cn_index.md":"C0w9X0tu","en-us_index.md":"Bn3Gy4wd","en-us_completion_index.md":"Dp0rBnlX","zh-cn_completion_index.md":"DJyr-Og9","en-us_contribute_index.md":"CMLJWIsQ","zh-cn_command_index.md":"BpMYpBo4","en-us_command_index.md":"DSxpJclk","zh-cn_contribute_index.md":"BriTO8O-"} +{"zh-cn_index.md":"C0w9X0tu","en-us_contribute_index.md":"CMLJWIsQ","en-us_command_index.md":"DSxpJclk","zh-cn_contribute_index.md":"BriTO8O-","en-us_completion_index.md":"Dp0rBnlX","zh-cn_completion_index.md":"DJyr-Og9","zh-cn_command_index.md":"BpMYpBo4","en-us_index.md":"Bn3Gy4wd"} diff --git a/package-lock.json b/package-lock.json index d4111ed..4224a70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -957,39 +957,36 @@ } }, "node_modules/@vue/devtools-api": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.3.1.tgz", - "integrity": "sha512-yg2OQcnuez906E6/gDROLbUwI554PH5SWJMkomvOfGcPYjNpkK8LEy1pM1wxBtSVSlQbZKqiNgGQFp3Zw+0Jog==", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.3.2.tgz", + "integrity": "sha512-qFCm12te9rG0XWLCHm3x8TiZLULEP5s7Ruaadi5jAogwZ5qF7QH7tKc6yXZGV96uM+y1FUlbK+QwVbWgMfXEhQ==", "dev": true, "dependencies": { - "@vue/devtools-kit": "^7.3.1" + "@vue/devtools-kit": "^7.3.2" } }, "node_modules/@vue/devtools-kit": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.3.1.tgz", - "integrity": "sha512-O9LXPo0kC/PGFBRBMvT5PHiSXr6ZdJTshVuGQ1L2mnIZlIBdTjdtCRYQg/OMcEA5JDJPeJT8bnDYBBUbssGjoA==", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.3.2.tgz", + "integrity": "sha512-ba60JnbeLPzhfF5j0BPDGn9q5Ma9dWUV5gtVNjD+zm5uRf7LW8saAGNRnxxkRA56HZFzSAnXRGADc7YMAdrm0w==", "dev": true, "dependencies": { - "@vue/devtools-shared": "^7.3.1", + "@vue/devtools-shared": "^7.3.2", "birpc": "^0.2.17", "hookable": "^5.5.3", "mitt": "^3.0.1", "perfect-debounce": "^1.0.0", "speakingurl": "^14.0.1", "superjson": "^2.2.1" - }, - "peerDependencies": { - "vue": "^3.0.0" } }, "node_modules/@vue/devtools-shared": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.3.1.tgz", - "integrity": "sha512-TYbJLZwBy5+SliE095T+V0IMwRu+oP7I2KAsDuNtSsjHKITZvrhz2fNEvik9NsTLcEQBBoX81NvdgpoB29JAog==", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.3.2.tgz", + "integrity": "sha512-RpYfqStbzljD6zf9LPXF2T7kM3fMfepxJB5yjzyloFel5nEB49DUm4TeA426IH+hKvwjjRorZyh6CT1cG/H2Vw==", "dev": true, "dependencies": { - "rfdc": "^1.3.1" + "rfdc": "^1.4.1" } }, "node_modules/@vue/reactivity": { diff --git a/zh-CN/command/index.html b/zh-CN/command/index.html index cee3713..4e5e36d 100644 --- a/zh-CN/command/index.html +++ b/zh-CN/command/index.html @@ -18,7 +18,7 @@
Skip to content
  • 等待补充...
    • 可以使用 psc 触发补全,通过补全提示信息了解模块命令
    • 通过项目的 README 了解
    • 输入 psc 后 按下 enter,将会打印一些模块信息
- + \ No newline at end of file diff --git a/zh-CN/completion/index.html b/zh-CN/completion/index.html index e8a73bf..4a537bb 100644 --- a/zh-CN/completion/index.html +++ b/zh-CN/completion/index.html @@ -97,7 +97,7 @@ ] } ] - + \ No newline at end of file diff --git a/zh-CN/contribute/index.html b/zh-CN/contribute/index.html index a353911..dee1512 100644 --- a/zh-CN/contribute/index.html +++ b/zh-CN/contribute/index.html @@ -18,7 +18,7 @@
Skip to content

关于 PR (Pull Request)

  1. 前提: 你应该先阅读 关于补全的 json 文件结构
  2. 你应该 fork PSCompletions 仓库,克隆到本地进行修改
  3. 只要到补全文件进行了修改,都需要更新其目录下的 guid.txt 文件
    • 你可以手动运行 New-Guid 生成,将值填入此文件中
    • 也可以直接运行 .\script\updateGuid.ps1,在弹出的 PowerShell 列表框中,选择此补全,并应用修改即可
  4. 修改完成后,提交并创建 PR

1. 更新 json 文件内容

  • 完善补全的一些提示信息(tip 属性)
  • 添加补全的一些缺失的命令
    • 可以通过 .\script\compareJson.ps1 脚本来查看未完成的部分
      • git 举例
      • 你可以使用以下命令查看 zh-CN.json 文件缺少的属性(相较于 en-US.json 文件)
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json .\completions\git\language\en-US.json
      • 如果是和 config.json 中配置的第一个语言对比,也可以省略第二个参数
        • 一般都是和第一个语言对比,所以以下命令是最常见的用法
        • .\script\compareJson.ps1 .\completions\git\language\zh-CN.json

2. 添加语言

  1. 在项目的 completions 目录中找到你想要添加语言的补全
  2. 在其目录下的 config.json 文件中的 language 属性里添加像 zh-CN 这样的语言标识符
  3. language 目录下添加与语言标识符同名的 json 文件
    • 你可以将原有的一个 json 文件直接复制,改名即可
  4. 翻译其中的 tip 属性的内容即可

3. 添加一个全新的命令补全

  1. 在项目根目录下运行 .\script\create.ps1
    • 为了调试方便,create.ps1 会将创建的补全目录链接到实际 PSCompletionscompletions 目录下
      • 因此,必须先安装并导入 PSCompletions 模块,然后再运行 create.ps1
        • Install-Module PSCompletions -Scope CurrentUser
        • Import-Module PSCompletions
    • 当提交 PR 并被合并后,你应该使用 psc rm 移除掉此补全,并使用 psc add 重新添加
  2. 根据提示进行操作
  3. 修改新创建的补全
  4. 根据需求修改 config.json
- + \ No newline at end of file diff --git a/zh-CN/index.html b/zh-CN/index.html index 5b55853..853d1b9 100644 --- a/zh-CN/index.html +++ b/zh-CN/index.html @@ -18,7 +18,7 @@
Skip to content

PSCompletions

一个补全管理模块,它能让你在 PowerShell 中更简单、更方便地使用命令补全。

- + \ No newline at end of file