From b1a1b12392a854c9e45ba4037d459ee4f66f10af Mon Sep 17 00:00:00 2001 From: abgox Date: Wed, 24 Jul 2024 17:37:31 +0800 Subject: [PATCH] feat: format all files --- .prettierignore | 4 +- .vscode/extensions.json | 6 +- .vscode/settings.json | 50 +- README-CN.md | 140 +- README.md | 142 +- completions/7z/config.json | 5 +- completions/7z/language/en-US.json | 48 +- completions/7z/language/zh-CN.json | 53 +- completions/arch/config.json | 5 +- completions/arch/language/en-US.json | 8 +- completions/arch/language/zh-CN.json | 8 +- completions/b2sum/config.json | 4 +- completions/b2sum/language/en-US.json | 40 +- completions/b2sum/language/zh-CN.json | 8 +- completions/b3sum/config.json | 4 +- completions/b3sum/language/en-US.json | 40 +- completions/b3sum/language/zh-CN.json | 8 +- completions/base32/config.json | 4 +- completions/base32/language/en-US.json | 20 +- completions/base32/language/zh-CN.json | 8 +- completions/base64/config.json | 4 +- completions/base64/language/en-US.json | 20 +- completions/base64/language/zh-CN.json | 8 +- completions/basename/config.json | 4 +- completions/basename/language/en-US.json | 20 +- completions/basename/language/zh-CN.json | 8 +- completions/basenc/config.json | 4 +- completions/basenc/language/en-US.json | 20 +- completions/basenc/language/zh-CN.json | 8 +- completions/bun/config.json | 5 +- completions/bun/language/en-US.json | 2460 ++++++++++----------- completions/bun/language/zh-CN.json | 2421 +++++++++----------- completions/cargo/config.json | 5 +- completions/cargo/language/en-US.json | 707 ++---- completions/cargo/language/zh-CN.json | 1202 +++------- completions/chfs/config.json | 5 +- completions/chfs/language/en-US.json | 80 +- completions/chfs/language/zh-CN.json | 77 +- completions/choco/config.json | 5 +- completions/choco/language/en-US.json | 54 +- completions/choco/language/zh-CN.json | 69 +- completions/cksum/config.json | 4 +- completions/cksum/language/en-US.json | 20 +- completions/cksum/language/zh-CN.json | 8 +- completions/comm/config.json | 4 +- completions/comm/language/en-US.json | 19 +- completions/comm/language/zh-CN.json | 8 +- completions/conda/config.json | 5 +- completions/conda/language/en-US.json | 266 ++- completions/conda/language/zh-CN.json | 265 ++- completions/csplit/config.json | 4 +- completions/csplit/language/en-US.json | 38 +- completions/csplit/language/zh-CN.json | 8 +- completions/cut/config.json | 4 +- completions/cut/language/en-US.json | 37 +- completions/cut/language/zh-CN.json | 8 +- completions/date/config.json | 4 +- completions/date/language/en-US.json | 41 +- completions/date/language/zh-CN.json | 8 +- completions/dd/config.json | 5 +- completions/dd/language/en-US.json | 8 +- completions/dd/language/zh-CN.json | 8 +- completions/deno/config.json | 5 +- completions/deno/language/en-US.json | 237 +- completions/deno/language/zh-CN.json | 322 +-- completions/df/config.json | 4 +- completions/df/language/en-US.json | 44 +- completions/df/language/zh-CN.json | 4 +- completions/dircolors/config.json | 4 +- completions/dircolors/language/en-US.json | 22 +- completions/dircolors/language/zh-CN.json | 8 +- completions/dirname/config.json | 4 +- completions/dirname/language/en-US.json | 12 +- completions/dirname/language/zh-CN.json | 8 +- completions/docker/config.json | 5 +- completions/docker/language/en-US.json | 9 +- completions/docker/language/zh-CN.json | 9 +- completions/du/config.json | 4 +- completions/du/language/en-US.json | 78 +- completions/du/language/zh-CN.json | 8 +- completions/env/config.json | 4 +- completions/env/language/en-US.json | 50 +- completions/env/language/zh-CN.json | 8 +- completions/factor/config.json | 4 +- completions/factor/language/en-US.json | 8 +- completions/factor/language/zh-CN.json | 8 +- completions/fmt/config.json | 4 +- completions/fmt/language/en-US.json | 60 +- completions/fmt/language/zh-CN.json | 8 +- completions/fnm/config.json | 4 +- completions/fnm/language/en-US.json | 16 +- completions/fnm/language/zh-CN.json | 8 +- completions/fold/config.json | 4 +- completions/fold/language/en-US.json | 20 +- completions/fold/language/zh-CN.json | 8 +- completions/git/config.json | 5 +- completions/git/language/en-US.json | 235 +- completions/git/language/zh-CN.json | 325 +-- completions/hashsum/config.json | 4 +- completions/hashsum/language/en-US.json | 36 +- completions/hashsum/language/zh-CN.json | 8 +- completions/head/config.json | 4 +- completions/head/language/en-US.json | 29 +- completions/head/language/zh-CN.json | 8 +- completions/join/config.json | 4 +- completions/join/language/en-US.json | 46 +- completions/join/language/zh-CN.json | 8 +- completions/kubectl/config.json | 5 +- completions/kubectl/language/en-US.json | 8 +- completions/kubectl/language/zh-CN.json | 8 +- completions/link/config.json | 5 +- completions/link/language/en-US.json | 8 +- completions/link/language/zh-CN.json | 8 +- completions/ln/config.json | 4 +- completions/ln/language/en-US.json | 57 +- completions/ln/language/zh-CN.json | 8 +- completions/md5sum/config.json | 4 +- completions/md5sum/language/en-US.json | 36 +- completions/md5sum/language/zh-CN.json | 8 +- completions/mktemp/config.json | 4 +- completions/mktemp/language/en-US.json | 25 +- completions/mktemp/language/zh-CN.json | 8 +- completions/ngrok/config.json | 5 +- completions/ngrok/language/en-US.json | 13 +- completions/ngrok/language/zh-CN.json | 13 +- completions/nl/config.json | 4 +- completions/nl/language/en-US.json | 48 +- completions/nl/language/zh-CN.json | 4 +- completions/npm/config.json | 7 +- completions/npm/language/en-US.json | 482 ++-- completions/npm/language/zh-CN.json | 461 ++-- completions/nproc/config.json | 4 +- completions/nproc/language/en-US.json | 13 +- completions/nproc/language/zh-CN.json | 8 +- completions/nrm/config.json | 5 +- completions/nrm/language/en-US.json | 44 +- completions/nrm/language/zh-CN.json | 59 +- completions/numfmt/config.json | 4 +- completions/numfmt/language/en-US.json | 17 +- completions/numfmt/language/zh-CN.json | 8 +- completions/nvm/config.json | 5 +- completions/nvm/language/en-US.json | 9 +- completions/nvm/language/zh-CN.json | 24 +- completions/od/config.json | 4 +- completions/od/language/en-US.json | 66 +- completions/od/language/zh-CN.json | 8 +- completions/paste/config.json | 4 +- completions/paste/language/en-US.json | 20 +- completions/paste/language/zh-CN.json | 8 +- completions/pdm/config.json | 4 +- completions/pdm/language/en-US.json | 336 +-- completions/pdm/language/zh-CN.json | 30 +- completions/pip/config.json | 5 +- completions/pip/language/en-US.json | 160 +- completions/pip/language/zh-CN.json | 195 +- completions/pnpm/config.json | 5 +- completions/pnpm/language/en-US.json | 129 +- completions/pnpm/language/zh-CN.json | 154 +- completions/psc/config.json | 7 +- completions/psc/language/en-US.json | 64 +- completions/psc/language/zh-CN.json | 143 +- completions/python/config.json | 5 +- completions/python/language/en-US.json | 19 +- completions/python/language/zh-CN.json | 39 +- completions/scoop/config.json | 5 +- completions/scoop/language/en-US.json | 248 +-- completions/scoop/language/zh-CN.json | 326 +-- completions/sfsu/config.json | 4 +- completions/sfsu/language/en-US.json | 27 +- completions/sfsu/language/zh-CN.json | 10 +- completions/volta/config.json | 5 +- completions/volta/language/en-US.json | 36 +- completions/volta/language/zh-CN.json | 66 +- completions/winget/config.json | 5 +- completions/winget/language/en-US.json | 317 +-- completions/winget/language/zh-CN.json | 387 +--- completions/wsl/config.json | 5 +- completions/wsl/language/en-US.json | 132 +- completions/wsl/language/zh-CN.json | 182 +- completions/wt/config.json | 5 +- completions/wt/language/en-US.json | 23 +- completions/wt/language/zh-CN.json | 23 +- completions/yarn/config.json | 5 +- completions/yarn/language/en-US.json | 86 +- completions/yarn/language/zh-CN.json | 111 +- docs/en-US/command/index.md | 12 +- docs/en-US/completion/index.md | 252 +-- docs/en-US/contribute/index.md | 34 +- docs/en-US/index.md | 40 +- docs/zh-CN/command/index.md | 12 +- docs/zh-CN/completion/index.md | 254 +-- docs/zh-CN/contribute/index.md | 38 +- docs/zh-CN/index.md | 40 +- module/log.json | 366 +-- script/auto-update-readme.ps1 | 4 +- script/template/config.json | 5 +- script/template/guide/en-US.json | 22 +- script/template/guide/zh-CN.json | 22 +- script/template/language/en-US.json | 8 +- script/template/language/zh-CN.json | 8 +- 200 files changed, 5658 insertions(+), 10581 deletions(-) diff --git a/.prettierignore b/.prettierignore index 1978b3b..77fe4ed 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1 @@ -completions.json -README.md -README-CN.md \ No newline at end of file +completions.json \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 0f148de..c83e263 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,3 @@ { - "recommendations": [ - "esbenp.prettier-vscode" - ] -} \ No newline at end of file + "recommendations": ["esbenp.prettier-vscode"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 816d4d1..9b403b3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,32 +1,26 @@ { - "json.schemas": [ - { - "url": "https://abgox.github.io/schema/PSCompletions/zh-CN/config-min.json", - "fileMatch": [ - "completions/**/config.json" - ] - }, - { - "url": "https://abgox.github.io/schema/PSCompletions/zh-CN/completion-min.json", - "fileMatch": [ - "completions/**/language/*.json" - ] - }, - { - "url": "https://abgox.github.io/schema/PSCompletions/zh-CN/completions-min.json", - "fileMatch": [ - "completions.json" - ] - }, - ], - "editor.formatOnSave": true, - "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "json.schemas": [ + { + "url": "https://abgox.github.io/schema/PSCompletions/zh-CN/config-min.json", + "fileMatch": ["completions/**/config.json"] }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + { + "url": "https://abgox.github.io/schema/PSCompletions/zh-CN/completion-min.json", + "fileMatch": ["completions/**/language/*.json"] }, - "[markdown]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + { + "url": "https://abgox.github.io/schema/PSCompletions/zh-CN/completions-min.json", + "fileMatch": ["completions.json"] } -} \ No newline at end of file + ], + "editor.formatOnSave": true, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } +} diff --git a/README-CN.md b/README-CN.md index d0c8146..5bc0f24 100644 --- a/README-CN.md +++ b/README-CN.md @@ -28,17 +28,17 @@ ## 介绍 -- `PowerShell`: 跨平台的 PowerShell。命令行中运行 `pwsh` 启动 +- `PowerShell`: 跨平台的 PowerShell。命令行中运行 `pwsh` 启动 -- `Windows PowerShell`: Windows 系统内置的 PowerShell。命令行中运行 `powershell` 启动 +- `Windows PowerShell`: Windows 系统内置的 PowerShell。命令行中运行 `powershell` 启动 --- -- 一个 `PowerShell` 补全管理模块,更好、更简单、更方便的使用和管理补全 - > `Windows PowerShell` 也可以使用此模块,但不建议 -- [集中管理补全](#补全列表 '点击查看可添加补全列表!') -- `en-US`,`zh-CN`,... 多语言切换 -- 动态排序补全候选(根据使用频次) +- 一个 `PowerShell` 补全管理模块,更好、更简单、更方便的使用和管理补全 + > `Windows PowerShell` 也可以使用此模块,但不建议 +- [集中管理补全](#补全列表 "点击查看可添加补全列表!") +- `en-US`,`zh-CN`,... 多语言切换 +- 动态排序补全候选(根据使用频次) **如果 PSCompletions 对你有所帮助,请在右上角点个 Star ⭐** @@ -47,7 +47,7 @@ 1. 打开 `PowerShell` 2. `Install-Module PSCompletions -Scope CurrentUser` 3. `Import-Module PSCompletions` - - 如果不想每次启动 `PowerShell` 都导入一次,就执行 `echo "Import-Module PSCompletions" >> $PROFILE` + - 如果不想每次启动 `PowerShell` 都导入一次,就执行 `echo "Import-Module PSCompletions" >> $PROFILE` ## 卸载 @@ -56,9 +56,9 @@ ## 使用(以 `git` 补全为例) -### [可用补全列表](#补全列表 '当前可添加的所有补全,更多的补全正在添加中!') +### [可用补全列表](#补全列表 "当前可添加的所有补全,更多的补全正在添加中!") -- 如果补全列表里没有你想要的补全,你可以 [提交 issues](https://github.com/abgox/PSCompletions/issues '点击提交 issues') +- 如果补全列表里没有你想要的补全,你可以 [提交 issues](https://github.com/abgox/PSCompletions/issues "点击提交 issues") 1. `psc add git` 2. 然后你就可以输入 `git`,按下 `Space`(空格键) `Tab` 键来获得命令补全 @@ -72,98 +72,99 @@ ### 关于补全触发按键 -- 模块默认使用 `Tab` 键作为补全触发按键 -- 你可以使用 `Set-PSReadLineKeyHandler MenuComplete` 去设置它 +- 模块默认使用 `Tab` 键作为补全触发按键 +- 你可以使用 `Set-PSReadLineKeyHandler MenuComplete` 去设置它 ### 关于补全更新 -- 当打开 `PowerShell` 并导入 `PSCompletions` 后,`PSCompletions` 会开启一个后台作业去检查远程仓库中补全的状态 -- 获取到更新后,会在下一次打开 `PowerShell` 并导入 `PSCompletions` 后显示补全更新提示 +- 当打开 `PowerShell` 并导入 `PSCompletions` 后,`PSCompletions` 会开启一个后台作业去检查远程仓库中补全的状态 +- 获取到更新后,会在下一次打开 `PowerShell` 并导入 `PSCompletions` 后显示补全更新提示 ### 关于补全菜单 -- 模块提供的补全菜单基于 [PS-GuiCompletion](https://github.com/nightroman/PS-GuiCompletion) 的实现思路,感谢 [PS-GuiCompletion](https://github.com/nightroman/PS-GuiCompletion) ! -- 模块提供的补全菜单只能在 Windows 系统下使用 PowerShell(pwsh) 运行, 其他环境只能使用 PowerShell 自带的补全菜单 -- 模块提供的补全菜单中的按键 +- 模块提供的补全菜单基于 [PS-GuiCompletion](https://github.com/nightroman/PS-GuiCompletion) 的实现思路,感谢 [PS-GuiCompletion](https://github.com/nightroman/PS-GuiCompletion) ! +- 模块提供的补全菜单只能在 Windows 系统下使用 PowerShell(pwsh) 运行, 其他环境只能使用 PowerShell 自带的补全菜单 +- 模块提供的补全菜单中的按键 - 1. 应用选中的补全项: `Enter`(回车键) - 2. 删除过滤字符: `Backspace`(退格键) - 3. 退出补全菜单: `ESC` / `Ctrl + c` - - 当过滤区域没有字符时,也可以使用 `Backspace`(退格键) 退出补全菜单 - 4. 选择补全项: + 1. 应用选中的补全项: `Enter`(回车键) + 2. 删除过滤字符: `Backspace`(退格键) + 3. 退出补全菜单: `ESC` / `Ctrl + c` + - 当过滤区域没有字符时,也可以使用 `Backspace`(退格键) 退出补全菜单 + 4. 选择补全项: - | 选择上一项 | 选择下一项 | - | :-------------: | :--------: | - | `Up` | `Down` | - | `Left` | `Right` | - | `Shift + Tab` | `Tab` | - | `Shift + Space` | `Space` | - | `Ctrl + u` | `Ctrl + d` | - | `Ctrl + p` | `Ctrl + n` | + | 选择上一项 | 选择下一项 | + | :-------------: | :--------: | + | `Up` | `Down` | + | `Left` | `Right` | + | `Shift + Tab` | `Tab` | + | `Shift + Space` | `Space` | + | `Ctrl + u` | `Ctrl + d` | + | `Ctrl + p` | `Ctrl + n` | -- 补全菜单的所有配置, 你可以输入 `psc menu` 然后按下 `Space`(空格键) `Tab` 键触发补全,通过命令提示信息来了解 +- 补全菜单的所有配置, 你可以输入 `psc menu` 然后按下 `Space`(空格键) `Tab` 键触发补全,通过命令提示信息来了解 ### 关于特殊符号 -- 😄🤔😎 : 如果出现多个, 表示符合多个条件, 可以选择其中一个的效果 +- 😄🤔😎 : 如果出现多个, 表示符合多个条件, 可以选择其中一个的效果 - - 😄 : 表示选用当前选中的补全后, 可以按下 `Space`(空格键) 和 `Tab` 键继续获取补全(普通补全或选项类补全) - - 可通过 `psc menu symbol SpaceTab ` 自定义此符号 - - 如: `psc menu symbol SpaceTab ""` 设置为空字符串 - - 🤔 : 表示选用当前选中的选项类补全后, 你可以按下 `Space`(空格键) 和 `Tab` 键继续获取剩余选项类补全(如 --verbose) - - 可通过 `psc menu symbol OptionTab ` 自定义此符号 - - 😎 : 表示选用当前选中的选项类补全后, 你可以按下 `Space`(空格键), 再输入一个字符串, 然后按下 `Space`(空格键) 和 `Tab` 键继续获取剩余选项类补全 + - 😄 : 表示选用当前选中的补全后, 可以按下 `Space`(空格键) 和 `Tab` 键继续获取补全(普通补全或选项类补全) + - 可通过 `psc menu symbol SpaceTab ` 自定义此符号 + - 如: `psc menu symbol SpaceTab ""` 设置为空字符串 + - 🤔 : 表示选用当前选中的选项类补全后, 你可以按下 `Space`(空格键) 和 `Tab` 键继续获取剩余选项类补全(如 --verbose) + - 可通过 `psc menu symbol OptionTab ` 自定义此符号 + - 😎 : 表示选用当前选中的选项类补全后, 你可以按下 `Space`(空格键), 再输入一个字符串, 然后按下 `Space`(空格键) 和 `Tab` 键继续获取剩余选项类补全 - - 如果字符串有空格, 请使用 "" 或 '' 包裹,如 "test content" - - 如果同时还有 😄, 表示有几个预设的字符串可以补全, 你可以不输入字符串, 直接按下 `Space`(空格键) 和 `Tab` 键继续获取补全 - - 可通过 `psc menu symbol WriteSpaceTab ` 自定义此符号 + - 如果字符串有空格, 请使用 "" 或 '' 包裹,如 "test content" + - 如果同时还有 😄, 表示有几个预设的字符串可以补全, 你可以不输入字符串, 直接按下 `Space`(空格键) 和 `Tab` 键继续获取补全 + - 可通过 `psc menu symbol WriteSpaceTab ` 自定义此符号 - - 如果存在通用选项类补全, 也可以触发通用选项的补全 - - 所有补全都可以在输入部分后按下 `Tab` 键触发补全 - - 如果你不需要也不想看到这些符号, 可以将它们替换成空字符串。如: `psc menu symbol SpaceTab ""` + - 如果存在通用选项类补全, 也可以触发通用选项的补全 + - 所有补全都可以在输入部分后按下 `Tab` 键触发补全 + - 如果你不需要也不想看到这些符号, 可以将它们替换成空字符串。如: `psc menu symbol SpaceTab ""` -- 使用 PowerShell 语言自带的补全菜单时, 如果 `...` 是最后一个补全, 则表示可显示区域过小, 无法显示所有候选项 -- 使用模块提供的补全菜单时, 如果补全提示信息末尾出现 `...`, 则表示当前显示区域宽度不够, 提示信息显示不完整 +- 使用 PowerShell 语言自带的补全菜单时, 如果 `...` 是最后一个补全, 则表示可显示区域过小, 无法显示所有候选项 +- 使用模块提供的补全菜单时, 如果补全提示信息末尾出现 `...`, 则表示当前显示区域宽度不够, 提示信息显示不完整 ### 关于语言 -- `Global language`: 默认为当前的系统语言 - - `psc config language` 可以查看全局的语言配置 - - `psc config language zh-CN` 可以更改全局的语言配置 -- `Completion language`: 为指定的补全设置的语言 - - e.g. `psc completion git language en-US` -- `Available language`: 每一个补全的 `config.json` 文件中有一个 `language` 属性,它的值是一个可用的语言列表 +- `Global language`: 默认为当前的系统语言 + - `psc config language` 可以查看全局的语言配置 + - `psc config language zh-CN` 可以更改全局的语言配置 +- `Completion language`: 为指定的补全设置的语言 + - e.g. `psc completion git language en-US` +- `Available language`: 每一个补全的 `config.json` 文件中有一个 `language` 属性,它的值是一个可用的语言列表 #### 确定语言 1. 确定指定的语言: 如果有 `Completion language`,优先使用它,没有则使用 `Global language` 2. 确定最终使用的语言: - - 判断第一步确定的值是否存在于 `Available language` 中 - - 如果存在,则使用它 - - 如果不存在,直接使用 `Available language` 中的第一种语言(一般为 `en-US`) + - 判断第一步确定的值是否存在于 `Available language` 中 + - 如果存在,则使用它 + - 如果不存在,直接使用 `Available language` 中的第一种语言(一般为 `en-US`) ### 关于路径补全 -- 以 `git` 为例,当输入 `git add`,此时按下 `Space` 和 `Tab` 键,不会触发路径补全,只会触发模块提供的命令补全 -- 如果你希望触发路径补全,你需要输入内容 -- 只要输入的内容符合这个正则 `^\.*[\\/].*`,都会去获取路径补全,这是 PowerShell 的补全,与模块无关 -- 比如: +- 以 `git` 为例,当输入 `git add`,此时按下 `Space` 和 `Tab` 键,不会触发路径补全,只会触发模块提供的命令补全 +- 如果你希望触发路径补全,你需要输入内容 +- 只要输入的内容符合这个正则 `^\.*[\\/].*`,都会去获取路径补全,这是 PowerShell 的补全,与模块无关 +- 比如: - - 输入 `./` 或 `.\` 后按下 `Tab` 以获取 **子目录** 或 **文件** 的路径补全 - - 输入 `../` 或 `..\` 后按下 `Tab` 以获取 **父级目录** 或 **文件** 的路径补全 - - 输入 `/` 或 `\` 后按下 `Tab` 以获取 **同级目录** 的路径补全 + - 输入 `./` 或 `.\` 后按下 `Tab` 以获取 **子目录** 或 **文件** 的路径补全 + - 输入 `../` 或 `..\` 后按下 `Tab` 以获取 **父级目录** 或 **文件** 的路径补全 + - 输入 `/` 或 `\` 后按下 `Tab` 以获取 **同级目录** 的路径补全 -- 因此,你应该输入 `git add ./` 这样的命令再按下 `Tab` 键来获取路径补全 +- 因此,你应该输入 `git add ./` 这样的命令再按下 `Tab` 键来获取路径补全 ## 补全列表 -- 说明 - - **`Completion`** :可添加的补全。点击跳转命令官方网站,按照数字字母排序(0-9,a-z)。 - - 特殊情况: `abc(a)`,这表示你需要通过 `psc add abc` 去下载它,但默认使用 `a` 而不是 `abc` 去触发补全 - - **`Language`**: 支持的语言,以及翻译进度 - - 翻译进度是相较于 `en-US` 的 - - **`Description`**: 命令描述 +- 说明 + - **`Completion`** :可添加的补全。点击跳转命令官方网站,按照数字字母排序(0-9,a-z)。 + - 特殊情况: `abc(a)`,这表示你需要通过 `psc add abc` 去下载它,但默认使用 `a` 而不是 `abc` 去触发补全 + - **`Language`**: 支持的语言,以及翻译进度 + - 翻译进度是相较于 `en-US` 的 + - **`Description`**: 命令描述 + |Completion|Language|Description| |:-:|-|-| |[7z](https://7-zip.org/)|**en-US**
**zh-CN(100%)**|7-Zip 的命令行 cli 程序| @@ -226,3 +227,4 @@ |[wt](https://github.com/microsoft/terminal)|**en-US**
**zh-CN(100%)**|Windows Terminal 命令行终端。
你可以使用此命令启动一个终端。| |[yarn](https://classic.yarnpkg.com/)|**en-US**
**zh-CN(100%)**|yarn - 软件包管理器| |...|...                          |...| + diff --git a/README.md b/README.md index c6fa08d..accb4f9 100644 --- a/README.md +++ b/README.md @@ -28,17 +28,17 @@ ## Introduce -- `PowerShell`: A Cross-platform PowerShell. Start it in command line by running `pwsh`. +- `PowerShell`: A Cross-platform PowerShell. Start it in command line by running `pwsh`. -- `Windows PowerShell`: A PowerShell which is built-in on Windows systems. Start it in command line by running `powershell`. +- `Windows PowerShell`: A PowerShell which is built-in on Windows systems. Start it in command line by running `powershell`. --- -- A completion manager in `PowerShell` for better and simpler use completions. - > It can also be used in `Windows PowerShell`.(Not Recommend) -- [Manage completions together.](#available-completions-list 'Click it to view the completion list that can be added !') -- Switch between languages(`en-US`,`zh-CN`,...) freely. -- Sort completion tab dynamically by frequency of use. +- A completion manager in `PowerShell` for better and simpler use completions. + > It can also be used in `Windows PowerShell`.(Not Recommend) +- [Manage completions together.](#available-completions-list "Click it to view the completion list that can be added !") +- Switch between languages(`en-US`,`zh-CN`,...) freely. +- Sort completion tab dynamically by frequency of use. **If this project is helpful to you, please consider giving it a star ⭐.** @@ -47,8 +47,8 @@ 1. Start `PowerShell` 2. `Install-Module PSCompletions -Scope CurrentUser` 3. `Import-Module PSCompletions` - - `echo "Import-Module PSCompletions" >> $PROFILE` - - So you don't have to import the module every time you open PowerShell. + - `echo "Import-Module PSCompletions" >> $PROFILE` + - So you don't have to import the module every time you open PowerShell. ## How to uninstall @@ -57,9 +57,9 @@ ## How to use(e.g. `git`) -### [Available Completions](#available-completions-list 'All completions that can be added at present. More completions are adding!') +### [Available Completions](#available-completions-list "All completions that can be added at present. More completions are adding!") -- If it doesn't include the completion you want, you can [submit an issue](https://github.com/abgox/PSCompletions/issues 'Click to submit an issue'). +- If it doesn't include the completion you want, you can [submit an issue](https://github.com/abgox/PSCompletions/issues "Click to submit an issue"). 1. `psc add git` 2. Then you can enter `git` and press `Space` `Tab` to get command completion. @@ -73,92 +73,93 @@ ### About the completion trigger key -- The module uses the `Tab` key by default. -- You can set it by running `Set-PSReadLineKeyHandler MenuComplete`. +- The module uses the `Tab` key by default. +- You can set it by running `Set-PSReadLineKeyHandler MenuComplete`. ### About completion update -- When the module is imported after opening `PowerShell`, `PSCompletions` will start a background job to check for the completion status of the remote repository. -- After getting the update, `PSCompletions` will show the latest status of the completions in the next time. +- When the module is imported after opening `PowerShell`, `PSCompletions` will start a background job to check for the completion status of the remote repository. +- After getting the update, `PSCompletions` will show the latest status of the completions in the next time. ### About completion menu -- The module's completion menu provided by the module is based on [PS-GuiCompletion](https://github.com/nightroman/PS-GuiCompletion) realization idea, thanks! -- It can only be used in PowerShell(pwsh) under Windows. -- Some keys in the completion menu provided by the module. +- The module's completion menu provided by the module is based on [PS-GuiCompletion](https://github.com/nightroman/PS-GuiCompletion) realization idea, thanks! +- It can only be used in PowerShell(pwsh) under Windows. +- Some keys in the completion menu provided by the module. - 1. Apply the selected completion item: `Enter` - 2. Delete filter characters: `Backspace` - 3. Exit the completion menu: `ESC` / `Ctrl + c` - - When there are no characters in the filter area, you can also use `Backspace` key to exit the completion menu. - 4. Select completion item: + 1. Apply the selected completion item: `Enter` + 2. Delete filter characters: `Backspace` + 3. Exit the completion menu: `ESC` / `Ctrl + c` + - When there are no characters in the filter area, you can also use `Backspace` key to exit the completion menu. + 4. Select completion item: - | Select previous item | Select next item | - | :------------------: | :--------------: | - | `Up` | `Down` | - | `Left` | `Right` | - | `Shift + Tab` | `Tab` | - | `Shift + Space` | `Space` | - | `Ctrl + u` | `Ctrl + d` | - | `Ctrl + p` | `Ctrl + n` | + | Select previous item | Select next item | + | :------------------: | :--------------: | + | `Up` | `Down` | + | `Left` | `Right` | + | `Shift + Tab` | `Tab` | + | `Shift + Space` | `Space` | + | `Ctrl + u` | `Ctrl + d` | + | `Ctrl + p` | `Ctrl + n` | -- All configurations of it, you can trigger completion by running `psc menu`, then learn about them by completion tip. +- All configurations of it, you can trigger completion by running `psc menu`, then learn about them by completion tip. ### About special symbols -- 😄🤔😎 : If there are multiple, you can choose the effect of one of them. - - 😄 : It means that after you apply it, you can press `Space` and `Tab` key to continue to get command completions.(Normal or optional completions) - - It can be customized by running `psc menu symbol SpaceTab ` - - 🤔 : It means that after you apply it (option completion), you can press `Space` and `Tab` key to continue to get option completions. (e.g. `--verbose`) - - It can be customized by running `psc menu symbol OptionTab ` - - 😎 : It means that after you apply it (option completion), you can press `Space` and enter a string, then press `Space` and `Tab` key to continue to get the rest of option completions. - - If the string has Spaces, Please use "" or '' to wrap it. e.g. 'test content' - - If there is also 😄, it means that there are some strings to complete, you can press `Space` and `Tab` key to continue to get command completions without entering a string. - - It can be customized by running `psc menu symbol WriteSpaceTab ` - - Completion of generic options can also be triggered if there is one or more generic option completion. - - All complements can be triggered by pressing the `Tab` key after entering a part. - - If you don't need or want to see these symbols, you can hide them by replacing them with the empty string. - - e.g. `psc menu symbol SpaceTab ""` +- 😄🤔😎 : If there are multiple, you can choose the effect of one of them. + - 😄 : It means that after you apply it, you can press `Space` and `Tab` key to continue to get command completions.(Normal or optional completions) + - It can be customized by running `psc menu symbol SpaceTab ` + - 🤔 : It means that after you apply it (option completion), you can press `Space` and `Tab` key to continue to get option completions. (e.g. `--verbose`) + - It can be customized by running `psc menu symbol OptionTab ` + - 😎 : It means that after you apply it (option completion), you can press `Space` and enter a string, then press `Space` and `Tab` key to continue to get the rest of option completions. + - If the string has Spaces, Please use "" or '' to wrap it. e.g. 'test content' + - If there is also 😄, it means that there are some strings to complete, you can press `Space` and `Tab` key to continue to get command completions without entering a string. + - It can be customized by running `psc menu symbol WriteSpaceTab ` + - Completion of generic options can also be triggered if there is one or more generic option completion. + - All complements can be triggered by pressing the `Tab` key after entering a part. + - If you don't need or want to see these symbols, you can hide them by replacing them with the empty string. + - e.g. `psc menu symbol SpaceTab ""` ### About language -- `Global language`: Default to the language of current system. - - You can show it by running `psc config language` - - You can change it by running `psc config language zh-CN` -- `Completion language`: The language set for the specified completion. - - e.g. `psc completion git language en-US`. -- `Available language`: In the completion `config.json` file, there is a `language` attribute whose value is a list of available languages. +- `Global language`: Default to the language of current system. + - You can show it by running `psc config language` + - You can change it by running `psc config language zh-CN` +- `Completion language`: The language set for the specified completion. + - e.g. `psc completion git language en-US`. +- `Available language`: In the completion `config.json` file, there is a `language` attribute whose value is a list of available languages. #### Determine language 1. Get the specified language: - - If there is `Completion language`,use it. - - If not, use `Global language`. + - If there is `Completion language`,use it. + - If not, use `Global language`. 2. Determine the final language: - - Determine whether the value of the first step exists in `Available language`. - - If it exists, use it. - - If not, use the first of the `Available language`. (It's usually `en-US`) + - Determine whether the value of the first step exists in `Available language`. + - If it exists, use it. + - If not, use the first of the `Available language`. (It's usually `en-US`) ### About path completion -- Take `git` for example, when entering `git add`, pressing the `Space` and `Tab` keys, path completion will not be triggered, only completion provided by the module will be triggered. -- If you want to trigger path completion, you need to enter a content. -- If the content matches this regex rule `^\.*[\\/].*`, it will get the path completion, which is PowerShell completion. -- e.g. - - Please enter `./` or `.\` and press `Tab` key to get path completion for the **subdirectory** or **file**. - - Please enter `../` or `..\` and press `Tab` key to get path completion for the **parent directory** or **file**. - - Please enter `/` or `\` and press `Tab` key to get path completion for the **sibling directory**. -- So you can enter `git add ./` and then press `Tab` key to get the path completion. +- Take `git` for example, when entering `git add`, pressing the `Space` and `Tab` keys, path completion will not be triggered, only completion provided by the module will be triggered. +- If you want to trigger path completion, you need to enter a content. +- If the content matches this regex rule `^\.*[\\/].*`, it will get the path completion, which is PowerShell completion. +- e.g. + - Please enter `./` or `.\` and press `Tab` key to get path completion for the **subdirectory** or **file**. + - Please enter `../` or `..\` and press `Tab` key to get path completion for the **parent directory** or **file**. + - Please enter `/` or `\` and press `Tab` key to get path completion for the **sibling directory**. +- So you can enter `git add ./` and then press `Tab` key to get the path completion. ## Available Completions List -- Guide - - **`Completion`** :Click to view to the official website of the command. Sort by first letter(0-9,a-z). - - Special case: `abc(a)`, it means that you need to download it by `psc add abc`, but by default `a` is used instead of `abc` to trigger the completion. - - **`Language`**: Supported Languages, and Translation Progress. - - The translation progress is compared to `en-US` - - **`Description`**: Command Description. +- Guide + - **`Completion`** :Click to view to the official website of the command. Sort by first letter(0-9,a-z). + - Special case: `abc(a)`, it means that you need to download it by `psc add abc`, but by default `a` is used instead of `abc` to trigger the completion. + - **`Language`**: Supported Languages, and Translation Progress. + - The translation progress is compared to `en-US` + - **`Description`**: Command Description. + |Completion|Language|Description| |:-:|-|-| |[7z](https://7-zip.org/)|**en-US**
**zh-CN(100%)**|The command line cli of 7-Zip| @@ -221,3 +222,4 @@ |[wt](https://github.com/microsoft/terminal)|**en-US**
**zh-CN(100%)**|Windows Terminal command line.
You can use it to start a terminal.| |[yarn](https://classic.yarnpkg.com/)|**en-US**
**zh-CN(100%)**|yarn - package manager| |...|...                          |...| + diff --git a/completions/7z/config.json b/completions/7z/config.json index 0a77759..70ec616 100644 --- a/completions/7z/config.json +++ b/completions/7z/config.json @@ -1,6 +1,3 @@ { - "language": [ - "en-US", - "zh-CN" - ] + "language": ["en-US", "zh-CN"] } diff --git a/completions/7z/language/en-US.json b/completions/7z/language/en-US.json index 83ce93e..53df0ac 100644 --- a/completions/7z/language/en-US.json +++ b/completions/7z/language/en-US.json @@ -2,10 +2,7 @@ "root": [ { "name": "a", - "tip": [ - "Add files to archive\n", - "E: a demo.zip demo\\" - ] + "tip": ["Add files to archive\n", "E: a demo.zip demo\\"] }, { "name": "b", @@ -48,27 +45,20 @@ }, { "name": "x", - "tip": [ - "extract files with full paths\n", - "E: x D:\\demo.7z -oD:\\demo" - ] + "tip": ["extract files with full paths\n", "E: x D:\\demo.7z -oD:\\demo"] } ], "options": [ { "name": "--version", - "alias": [ - "-v" - ], + "alias": ["-v"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." }, { @@ -107,10 +97,7 @@ }, { "name": "-bb", - "tip": [ - "U: -bb[0|1|2|3]\n", - "set output log level" - ] + "tip": ["U: -bb[0|1|2|3]\n", "set output log level"] }, { "name": "-bd", @@ -129,10 +116,7 @@ }, { "name": "-i", - "tip": [ - "Include filenames\n", - "E: -i!*.txt --- Include all txt files" - ] + "tip": ["Include filenames\n", "E: -i!*.txt --- Include all txt files"] }, { "name": "-m", @@ -148,17 +132,11 @@ }, { "name": "-o", - "tip": [ - "set Output directory\n", - "U: -oD:\\demo\n" - ] + "tip": ["set Output directory\n", "U: -oD:\\demo\n"] }, { "name": "-p", - "tip": [ - "set Password\n", - "E: -p123456 --- Set password to 123456" - ] + "tip": ["set Password\n", "E: -p123456 --- Set password to 123456"] }, { "name": "-r", @@ -170,10 +148,7 @@ }, { "name": "-sa", - "tip": [ - "U: -sa[a|e|s]\n", - "set Archive name mode" - ] + "tip": ["U: -sa[a|e|s]\n", "set Archive name mode"] }, { "name": "-scc", @@ -301,10 +276,7 @@ }, { "name": "-x", - "tip": [ - "exclude filenames\n", - "E: -x!*.txt --- Exclude all txt files" - ] + "tip": ["exclude filenames\n", "E: -x!*.txt --- Exclude all txt files"] }, { "name": "-y", diff --git a/completions/7z/language/zh-CN.json b/completions/7z/language/zh-CN.json index 1a1911e..8ff8abc 100644 --- a/completions/7z/language/zh-CN.json +++ b/completions/7z/language/zh-CN.json @@ -61,18 +61,14 @@ "options": [ { "name": "--version", - "alias": [ - "-v" - ], + "alias": ["-v"], "tip": "显示当前版本" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" }, { @@ -111,10 +107,7 @@ }, { "name": "-bb", - "tip": [ - "U: -bb[0|1|2|3]\n", - "设置输出日志级别" - ] + "tip": ["U: -bb[0|1|2|3]\n", "设置输出日志级别"] }, { "name": "-bd", @@ -122,10 +115,7 @@ }, { "name": "-bs", - "tip": [ - "U: -bs[o|e|p]\n", - "设置 output/error/progress 输出流" - ] + "tip": ["U: -bs[o|e|p]\n", "设置 output/error/progress 输出流"] }, { "name": "-bt", @@ -133,10 +123,7 @@ }, { "name": "-i", - "tip": [ - "包含文件名\n", - "E: -i!*.txt --- 包含所有扩展名为txt的文件" - ] + "tip": ["包含文件名\n", "E: -i!*.txt --- 包含所有扩展名为txt的文件"] }, { "name": "-m", @@ -152,17 +139,11 @@ }, { "name": "-o", - "tip": [ - "设置输出目录\n", - "U: -oD:\\demo\n" - ] + "tip": ["设置输出目录\n", "U: -oD:\\demo\n"] }, { "name": "-p", - "tip": [ - "设置密码\n", - "E: -p123456 --- 设置密码为 123456" - ] + "tip": ["设置密码\n", "E: -p123456 --- 设置密码为 123456"] }, { "name": "-r", @@ -174,17 +155,11 @@ }, { "name": "-sa", - "tip": [ - "U: -sa[a|e|s]\n", - "设置归档名称模式" - ] + "tip": ["U: -sa[a|e|s]\n", "设置归档名称模式"] }, { "name": "-scc", - "tip": [ - "U: -scc[UTF-8|WIN|DOS]\n", - "设置控制台输入/输出字符集" - ] + "tip": ["U: -scc[UTF-8|WIN|DOS]\n", "设置控制台输入/输出字符集"] }, { "name": "-scs", @@ -295,17 +270,11 @@ }, { "name": "-w", - "tip": [ - "分配工作目录\n", - "E: -wD:\\temp --- 设置工作目录为 D:\\temp" - ] + "tip": ["分配工作目录\n", "E: -wD:\\temp --- 设置工作目录为 D:\\temp"] }, { "name": "-x", - "tip": [ - "排除文件名\n", - "E: -x!*.txt --- 排除所有扩展名为txt的文件" - ] + "tip": ["排除文件名\n", "E: -x!*.txt --- 排除所有扩展名为txt的文件"] }, { "name": "-y", diff --git a/completions/arch/config.json b/completions/arch/config.json index 0a77759..70ec616 100644 --- a/completions/arch/config.json +++ b/completions/arch/config.json @@ -1,6 +1,3 @@ { - "language": [ - "en-US", - "zh-CN" - ] + "language": ["en-US", "zh-CN"] } diff --git a/completions/arch/language/en-US.json b/completions/arch/language/en-US.json index 49a6350..17f9233 100644 --- a/completions/arch/language/en-US.json +++ b/completions/arch/language/en-US.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." } ], diff --git a/completions/arch/language/zh-CN.json b/completions/arch/language/zh-CN.json index 1543951..8ed8538 100644 --- a/completions/arch/language/zh-CN.json +++ b/completions/arch/language/zh-CN.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "显示版本信息" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" } ], diff --git a/completions/b2sum/config.json b/completions/b2sum/config.json index 15366b1..2d56526 100644 --- a/completions/b2sum/config.json +++ b/completions/b2sum/config.json @@ -1,5 +1,3 @@ { - "language": [ - "en-US" - ] + "language": ["en-US"] } diff --git a/completions/b2sum/language/en-US.json b/completions/b2sum/language/en-US.json index 25459a3..dc922f8 100644 --- a/completions/b2sum/language/en-US.json +++ b/completions/b2sum/language/en-US.json @@ -2,16 +2,12 @@ "options": [ { "name": "-b", - "alias": [ - "--binary" - ], + "alias": ["--binary"], "tip": "read in binary mode (default)" }, { "name": "-c", - "alias": [ - "--check" - ], + "alias": ["--check"], "tip": "read hashsums from the FILEs and check them" }, { @@ -20,23 +16,17 @@ }, { "name": "-t", - "alias": [ - "--text" - ], + "alias": ["--text"], "tip": "read in text mode" }, { "name": "-q", - "alias": [ - "--quiet" - ], + "alias": ["--quiet"], "tip": "don't print OK for each successfully verified file" }, { "name": "-s", - "alias": [ - "--status" - ], + "alias": ["--status"], "tip": "don't output anything, status code shows success" }, { @@ -49,23 +39,17 @@ }, { "name": "-w", - "alias": [ - "--warn" - ], + "alias": ["--warn"], "tip": "warn about improperly formatted checksum lines" }, { "name": "-z", - "alias": [ - "--zero" - ], + "alias": ["--zero"], "tip": "end each output line with NUL, not newline" }, { "name": "-l", - "alias": [ - "--length" - ], + "alias": ["--length"], "symbol": "WriteSpaceTab", "tip": [ "U: -l|--length \n", @@ -75,18 +59,14 @@ }, { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." } ], diff --git a/completions/b2sum/language/zh-CN.json b/completions/b2sum/language/zh-CN.json index a6404da..7d756ff 100644 --- a/completions/b2sum/language/zh-CN.json +++ b/completions/b2sum/language/zh-CN.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "显示版本信息" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" } ] diff --git a/completions/b3sum/config.json b/completions/b3sum/config.json index 15366b1..2d56526 100644 --- a/completions/b3sum/config.json +++ b/completions/b3sum/config.json @@ -1,5 +1,3 @@ { - "language": [ - "en-US" - ] + "language": ["en-US"] } diff --git a/completions/b3sum/language/en-US.json b/completions/b3sum/language/en-US.json index 25459a3..dc922f8 100644 --- a/completions/b3sum/language/en-US.json +++ b/completions/b3sum/language/en-US.json @@ -2,16 +2,12 @@ "options": [ { "name": "-b", - "alias": [ - "--binary" - ], + "alias": ["--binary"], "tip": "read in binary mode (default)" }, { "name": "-c", - "alias": [ - "--check" - ], + "alias": ["--check"], "tip": "read hashsums from the FILEs and check them" }, { @@ -20,23 +16,17 @@ }, { "name": "-t", - "alias": [ - "--text" - ], + "alias": ["--text"], "tip": "read in text mode" }, { "name": "-q", - "alias": [ - "--quiet" - ], + "alias": ["--quiet"], "tip": "don't print OK for each successfully verified file" }, { "name": "-s", - "alias": [ - "--status" - ], + "alias": ["--status"], "tip": "don't output anything, status code shows success" }, { @@ -49,23 +39,17 @@ }, { "name": "-w", - "alias": [ - "--warn" - ], + "alias": ["--warn"], "tip": "warn about improperly formatted checksum lines" }, { "name": "-z", - "alias": [ - "--zero" - ], + "alias": ["--zero"], "tip": "end each output line with NUL, not newline" }, { "name": "-l", - "alias": [ - "--length" - ], + "alias": ["--length"], "symbol": "WriteSpaceTab", "tip": [ "U: -l|--length \n", @@ -75,18 +59,14 @@ }, { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." } ], diff --git a/completions/b3sum/language/zh-CN.json b/completions/b3sum/language/zh-CN.json index a6404da..7d756ff 100644 --- a/completions/b3sum/language/zh-CN.json +++ b/completions/b3sum/language/zh-CN.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "显示版本信息" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" } ] diff --git a/completions/base32/config.json b/completions/base32/config.json index 15366b1..2d56526 100644 --- a/completions/base32/config.json +++ b/completions/base32/config.json @@ -1,5 +1,3 @@ { - "language": [ - "en-US" - ] + "language": ["en-US"] } diff --git a/completions/base32/language/en-US.json b/completions/base32/language/en-US.json index dc4492a..485df1c 100644 --- a/completions/base32/language/en-US.json +++ b/completions/base32/language/en-US.json @@ -2,23 +2,17 @@ "options": [ { "name": "-d", - "alias": [ - "-decode" - ], + "alias": ["-decode"], "tip": "decode data" }, { "name": "-i", - "alias": [ - "-ignore-garbage" - ], + "alias": ["-ignore-garbage"], "tip": "when decoding, ignore non-alphabetic characters" }, { "name": "-w", - "alias": [ - "-wrap" - ], + "alias": ["-wrap"], "symbol": "WriteSpaceTab", "tip": [ "U: -w|-wrap \n", @@ -27,18 +21,14 @@ }, { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." } ], diff --git a/completions/base32/language/zh-CN.json b/completions/base32/language/zh-CN.json index a6404da..7d756ff 100644 --- a/completions/base32/language/zh-CN.json +++ b/completions/base32/language/zh-CN.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "显示版本信息" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" } ] diff --git a/completions/base64/config.json b/completions/base64/config.json index 15366b1..2d56526 100644 --- a/completions/base64/config.json +++ b/completions/base64/config.json @@ -1,5 +1,3 @@ { - "language": [ - "en-US" - ] + "language": ["en-US"] } diff --git a/completions/base64/language/en-US.json b/completions/base64/language/en-US.json index dc4492a..485df1c 100644 --- a/completions/base64/language/en-US.json +++ b/completions/base64/language/en-US.json @@ -2,23 +2,17 @@ "options": [ { "name": "-d", - "alias": [ - "-decode" - ], + "alias": ["-decode"], "tip": "decode data" }, { "name": "-i", - "alias": [ - "-ignore-garbage" - ], + "alias": ["-ignore-garbage"], "tip": "when decoding, ignore non-alphabetic characters" }, { "name": "-w", - "alias": [ - "-wrap" - ], + "alias": ["-wrap"], "symbol": "WriteSpaceTab", "tip": [ "U: -w|-wrap \n", @@ -27,18 +21,14 @@ }, { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." } ], diff --git a/completions/base64/language/zh-CN.json b/completions/base64/language/zh-CN.json index a6404da..7d756ff 100644 --- a/completions/base64/language/zh-CN.json +++ b/completions/base64/language/zh-CN.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "显示版本信息" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" } ] diff --git a/completions/basename/config.json b/completions/basename/config.json index 15366b1..2d56526 100644 --- a/completions/basename/config.json +++ b/completions/basename/config.json @@ -1,5 +1,3 @@ { - "language": [ - "en-US" - ] + "language": ["en-US"] } diff --git a/completions/basename/language/en-US.json b/completions/basename/language/en-US.json index 9c9c3aa..05b1afb 100644 --- a/completions/basename/language/en-US.json +++ b/completions/basename/language/en-US.json @@ -2,16 +2,12 @@ "options": [ { "name": "-a", - "alias": [ - "--multiple" - ], + "alias": ["--multiple"], "tip": "support multiple arguments and treat each as a NAME" }, { "name": "-s", - "alias": [ - "--suffix" - ], + "alias": ["--suffix"], "symbol": "WriteSpaceTab", "tip": [ "U: -s|--suffix \n", @@ -20,25 +16,19 @@ }, { "name": "-z", - "alias": [ - "--zero" - ], + "alias": ["--zero"], "tip": "end each output line with NUL, not newline" }, { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." } ], diff --git a/completions/basename/language/zh-CN.json b/completions/basename/language/zh-CN.json index a6404da..7d756ff 100644 --- a/completions/basename/language/zh-CN.json +++ b/completions/basename/language/zh-CN.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "显示版本信息" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" } ] diff --git a/completions/basenc/config.json b/completions/basenc/config.json index 15366b1..2d56526 100644 --- a/completions/basenc/config.json +++ b/completions/basenc/config.json @@ -1,5 +1,3 @@ { - "language": [ - "en-US" - ] + "language": ["en-US"] } diff --git a/completions/basenc/language/en-US.json b/completions/basenc/language/en-US.json index cc135fd..44d5616 100644 --- a/completions/basenc/language/en-US.json +++ b/completions/basenc/language/en-US.json @@ -2,23 +2,17 @@ "options": [ { "name": "-d", - "alias": [ - "-decode" - ], + "alias": ["-decode"], "tip": "decode data" }, { "name": "-i", - "alias": [ - "-ignore-garbage" - ], + "alias": ["-ignore-garbage"], "tip": "when decoding, ignore non-alphabetic characters" }, { "name": "-w", - "alias": [ - "--wrap" - ], + "alias": ["--wrap"], "tip": [ "U: -w|--wrap \n", "wrap encoded lines after COLS character (default 76, 0 to disable wrapping)" @@ -62,18 +56,14 @@ }, { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "Show the version." } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "Show help." } ], diff --git a/completions/basenc/language/zh-CN.json b/completions/basenc/language/zh-CN.json index a6404da..7d756ff 100644 --- a/completions/basenc/language/zh-CN.json +++ b/completions/basenc/language/zh-CN.json @@ -2,18 +2,14 @@ "options": [ { "name": "--version", - "alias": [ - "-V" - ], + "alias": ["-V"], "tip": "显示版本信息" } ], "common_options": [ { "name": "--help", - "alias": [ - "-h" - ], + "alias": ["-h"], "tip": "显示帮助信息" } ] diff --git a/completions/bun/config.json b/completions/bun/config.json index 2f23295..70ec616 100644 --- a/completions/bun/config.json +++ b/completions/bun/config.json @@ -1,6 +1,3 @@ { - "language": [ - "en-US", - "zh-CN" - ] + "language": ["en-US", "zh-CN"] } diff --git a/completions/bun/language/en-US.json b/completions/bun/language/en-US.json index 7ecf42c..1a7ff9f 100644 --- a/completions/bun/language/en-US.json +++ b/completions/bun/language/en-US.json @@ -1,1375 +1,1199 @@ { - "root": [ - { - "name": "run", - "alias": [ - "exec" - ], - "tip": [ - "U: run|exec [flags] \n", - "Execute a file with Bun.\n", - "E: run ./my-script.ts --- Run ts file\n", - " run build --- Run a package.json script" - ], - "options": [ - { - "name": "--main-fields", - "tip": [ - "Main fields to lookup in package.json.\n", - "Defaults to --target dependent" - ] - }, - { - "name": "--extension-order", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --extension-order \n", - "Defaults to: .tsx,.ts,.jsx,.js,.json" - ] - }, - { - "name": "--tsconfig-override", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --tsconfig-override \n", - "Specify custom tsconfig.json.\n", - "Default ./tsconfig.json" - ] - }, - { - "name": "-d", - "alias": [ - "--define" - ], - "symbol": "WriteSpaceTab", - "tip": [ - "U: -d|--define \n", - "Substitute K:V while parsing. Values are parsed as JSON.\n", - "E: --define process.env.NODE_ENV:\"development\"" - ] - }, - { - "name": "-l", - "alias": [ - "--loader" - ], - "symbol": "WriteSpaceTab", - "tip": [ - "U: -l|--loader <.ext:loader>\n", - "Parse files with .ext:loader\n", - "Valid loaders: js, jsx, ts, tsx, json, toml, text, file, wasm, napi\n", - "E: --loader .js:jsx" - ] - }, - { - "name": "--no-macros", - "tip": "Disable macros from being executed in the bundler, transpiler and runtime." - }, - { - "name": "--jsx-factory", - "tip": "Changes the function called when compiling JSX elements using the classic JSX runtime." - }, - { - "name": "--jsx-fragment", - "tip": "Changes the function called when compiling JSX fragments." - }, - { - "name": "--jsx-import-source", - "tip": [ - "Declares the module specifier to be used for importing the jsx and jsxs factory functions.\n", - "Default: \"react\"" - ] - }, - { - "name": "--jsx-runtime", - "tip": "Set up the JSX runtime.", - "next": [ - { - "name": "classic" - }, - { - "name": "automatic" - } - ] - } - ] - }, - { - "name": "test", - "tip": [ - "U: test [flags] \n", - "Run all matching test files and print the results to stdout." - ], - "options": [ - { - "name": "--timeout", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --timeout \n", - "Set the per-test timeout in milliseconds, default is 5000." - ] - }, - { - "name": "--update-snapshots", - "tip": "Update snapshot files" - }, - { - "name": "--rerun-each", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --rerun-each \n", - "Re-run each test file times, helps catch certain bugs" - ] - }, - { - "name": "--only", - "tip": "Only run tests that are marked with \"test.only()\"" - }, - { - "name": "--todo", - "tip": "Include tests that are marked with \"test.todo()\"" - }, - { - "name": "--coverage", - "tip": "Generate a coverage profile." - }, - { - "name": "--bail", - "tip": [ - "U: --bail \n", - "Exit the test suite after failures.\n", - "If you do not specify a number, it defaults to 1." - ] - }, - { - "name": "-t", - "alias": [ - "--test-name-pattern" - ], - "symbol": "WriteSpaceTab", - "tip": [ - "U: -t|--test-name-pattern \n", - "Run only tests with a name that matches the given regex." - ] - } - ] - }, - { - "name": "x", - "tip": [ - "U: x [flags] [@version] [...flags and arguments]\n", - "Execute an npm package executable (CLI), automatically installing into a global shared cache if not installed in node_modules.\n", - "E: x --bun vite dev foo.js" - ], - "options": [ - { - "name": "--bun", - "tip": "Force the command to run with Bun instead of Node.js" - } - ] - }, - { - "name": "repl", - "tip": [ - "U: repl [options]\n", - "Start a REPL session with Bun." - ], - "options": [ - { - "name": "--sloppy", - "tip": "Runs the REPL in sloppy mode." - }, - { - "name": "--print", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --print \n", - "Evaluates given code, prints result and exits.\n", - "E: --print \"console.log('Hello')\"" - ] - }, - { - "name": "--eval", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --eval \n", - "Evaluates given code and silently exits.\n", - "E: --eval \"console.log('Hello')\"" - ] - } - ] - }, - { - "name": "install", - "alias": [ - "i", - "add", - "a" - ], - "tip": [ - "U: install|i|add|a\n", - "Install/Add dependencies for a package.json." - ], - "options": [ - { - "name": "-y", - "alias": [ - "--yarn" - ], - "tip": [ - "U: -y|--yarn\n", - "Write a yarn.lock file. (yarn v1)" - ] - }, - { - "name": "-p", - "alias": [ - "--production" - ], - "tip": [ - "U: -p|--production\n", - "Don't install devDependencies." - ] - }, - { - "name": "--no-save", - "tip": "Don't update package.json or save a lockfile." - }, - { - "name": "--save", - "tip": "Save to package.json. (true by default)" - }, - { - "name": "--dry-run", - "tip": "Don't install anything." - }, - { - "name": "--frozen-lockfile", - "tip": "Disallow changes to lockfile." - }, - { - "name": "-f", - "alias": [ - "--force" - ], - "tip": [ - "U: -f|--force\n", - "Always request the latest versions from the registry & reinstall all dependencies." - ] - }, - { - "name": "--cache-dir", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cache-dir \n", - "Store & load cached data from a specific directory path." - ] - }, - { - "name": "--no-cache", - "tip": "Ignore manifest cache entirely." - }, - { - "name": "--silent", - "tip": "Don't log anything." - }, - { - "name": "--verbose", - "tip": "Excessively verbose logging." - }, - { - "name": "--no-progress", - "tip": "Disable the progress bar." - }, - { - "name": "--no-summary", - "tip": "Don't print a summary." - }, - { - "name": "--no-verify", - "tip": "Skip verifying integrity of newly downloaded packages." - }, - { - "name": "--ignore-scripts", - "tip": "Skip lifecycle scripts in the project's package.json (dependency scripts are never run)." - }, - { - "name": "--trust", - "tip": "Add to trustedDependencies in the project's package.json and install the package(s)." - }, - { - "name": "-g", - "alias": [ - "--global" - ], - "tip": [ - "U: -g|--global\n", - "Install globally." - ] - }, - { - "name": "--cwd", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cwd \n", - "Set a specific cwd." - ] - }, - { - "name": "--backend", - "tip": [ - "Platform-specific optimizations for installing dependencies.\n", - "Possible values: \"hardlink\" (default), \"symlink\", \"copyfile\"" - ], - "next": [ - { - "name": "hardlink", - "tip": "default value" - }, - { - "name": "symlink" - }, - { - "name": "copyfile" - } - ] - }, - { - "name": "--link-native-bins", - "tip": [ - "Link \"bin\" from a matching platform-specific \"optionalDependencies\" instead.\n", - "Default: esbuild, turbo" - ] - }, - { - "name": "--concurrent-scripts", - "tip": "Maximum number of concurrent jobs for lifecycle scripts. (default 5)" - }, - { - "name": "-d", - "alias": [ - "--dev" - ], - "tip": [ - "U: -d|--dev\n", - "Add dependency to \"devDependencies\"." - ] - }, - { - "name": "--optional", - "tip": "Add dependency to \"optionalDependencies\"." - }, - { - "name": "-E", - "alias": [ - "--exact" - ], - "tip": [ - "U: -E|--exact\n", - "Add the exact version instead of the ^range" - ] - } - ] - }, - { - "name": "remove", - "alias": [ - "rm" - ], - "tip": [ - "U: remove|rm [flags] [...]\n", - "Remove a package from package.json and uninstall from node_modules.\n", - "E: remove vite" - ], - "options": [ - { - "name": "-y", - "alias": [ - "--yarn" - ], - "tip": [ - "U: -y|--yarn\n", - "Write a yarn.lock file. (yarn v1)" - ] - }, - { - "name": "-p", - "alias": [ - "--production" - ], - "tip": [ - "U: -p|--production\n", - "Don't uninstall devDependencies." - ] - }, - { - "name": "--no-save", - "tip": "Don't update package.json or save a lockfile." - }, - { - "name": "--save", - "tip": "Save to package.json. (true by default)" - }, - { - "name": "--dry-run", - "tip": "Don't uninstall anything." - }, - { - "name": "--frozen-lockfile", - "tip": "Disallow changes to lockfile." - }, - { - "name": "-f", - "alias": [ - "--force" - ], - "tip": [ - "U: -f|--force\n", - "Always request the latest versions from the registry & reinstall all dependencies." - ] - }, - { - "name": "--cache-dir", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cache-dir \n", - "Store & load cached data from a specific directory path." - ] - }, - { - "name": "--no-cache", - "tip": "Ignore manifest cache entirely." - }, - { - "name": "--silent", - "tip": "Don't log anything." - }, - { - "name": "--verbose", - "tip": "Excessively verbose logging." - }, - { - "name": "--no-progress", - "tip": "Disable the progress bar." - }, - { - "name": "--no-summary", - "tip": "Don't print a summary." - }, - { - "name": "--no-verify", - "tip": "Skip verifying integrity of newly downloaded packages." - }, - { - "name": "--ignore-scripts", - "tip": "Skip lifecycle scripts in the project's package.json. (dependency scripts are never run)" - }, - { - "name": "--trust", - "tip": "Add to trustedDependencies in the project's package.json and install the package(s)." - }, - { - "name": "-g", - "alias": [ - "--global" - ], - "tip": [ - "U: -g|--global\n", - "Uninstall globally." - ] - }, - { - "name": "--cwd", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cwd \n", - "Set a specific cwd" - ] - }, - { - "name": "--backend", - "tip": [ - "Platform-specific optimizations for installing dependencies.\n", - "Possible values: \"hardlink\" (default), \"symlink\", \"copyfile\"" - ], - "next": [ - { - "name": "hardlink", - "tip": "default value" - }, - { - "name": "symlink" - }, - { - "name": "copyfile" - } - ] - }, - { - "name": "--link-native-bins", - "tip": "Link \"bin\" from a matching platform-specific \"optionalDependencies\" instead. Default: esbuild, turbo" - }, - { - "name": "--concurrent-scripts", - "tip": "Maximum number of concurrent jobs for lifecycle scripts (default 5)" - } - ] - }, - { - "name": "update", - "tip": "Update all dependencies to most recent versions within the version range in package.json.", - "options": [ - { - "name": "-y", - "alias": [ - "--yarn" - ], - "tip": [ - "U: -y|--yarn\n", - "Write a yarn.lock file. (yarn v1)" - ] - }, - { - "name": "-p", - "alias": [ - "--production" - ], - "tip": [ - "U: -p|--production\n", - "Don't update devDependencies." - ] - }, - { - "name": "--no-save", - "tip": "Don't update package.json or save a lockfile." - }, - { - "name": "--save", - "tip": "Save to package.json. (true by default)" - }, - { - "name": "--dry-run", - "tip": "Don't update anything." - }, - { - "name": "--frozen-lockfile", - "tip": "Disallow changes to lockfile." - }, - { - "name": "-f", - "alias": [ - "--force" - ], - "tip": [ - "U: -f|--force\n", - "Always request the latest versions from the registry & reinstall all dependencies." - ] - }, - { - "name": "--cache-dir", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cache-dir \n", - "Store & load cached data from a specific directory path." - ] - }, - { - "name": "--no-cache", - "tip": "Ignore manifest cache entirely." - }, - { - "name": "--silent", - "tip": "Don't log anything." - }, - { - "name": "--verbose", - "tip": "Excessively verbose logging." - }, - { - "name": "--no-progress", - "tip": "Disable the progress bar." - }, - { - "name": "--no-summary", - "tip": "Don't print a summary." - }, - { - "name": "--no-verify", - "tip": "Skip verifying integrity of newly downloaded packages." - }, - { - "name": "--ignore-scripts", - "tip": "Skip lifecycle scripts in the project's package.json. (dependency scripts are never run)" - }, - { - "name": "--trust", - "tip": "Add to trustedDependencies in the project's package.json and install the package(s)." - }, - { - "name": "-g", - "alias": [ - "--global" - ], - "tip": [ - "U: -g|--global\n", - "Update globally." - ] - }, - { - "name": "--cwd", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cwd \n", - "Set a specific cwd." - ] - }, - { - "name": "--backend", - "tip": [ - "Platform-specific optimizations for installing dependencies.\n", - "Possible values: \"hardlink\" (default), \"symlink\", \"copyfile\"" - ], - "next": [ - { - "name": "hardlink", - "tip": "default value" - }, - { - "name": "symlink" - }, - { - "name": "copyfile" - } - ] - }, - { - "name": "--link-native-bins", - "tip": "Link \"bin\" from a matching platform-specific \"optionalDependencies\" instead. Default: esbuild, turbo" - }, - { - "name": "--concurrent-scripts", - "tip": "Maximum number of concurrent jobs for lifecycle scripts (default 5)" - } - ] - }, - { - "name": "link", - "tip": [ - "U: link [flags] []\n", - "Register or link a local npm package." - ], - "options": [ - { - "name": "-y", - "alias": [ - "--yarn" - ], - "tip": [ - "U: -y|--yarn\n", - "Write a yarn.lock file. (yarn v1)" - ] - }, - { - "name": "-p", - "alias": [ - "--production" - ], - "tip": [ - "U: -p|--production\n", - "Don't link devDependencies." - ] - }, - { - "name": "--no-save", - "tip": "Don't update package.json or save a lockfile." - }, - { - "name": "--save", - "tip": "Save to package.json. (true by default)" - }, - { - "name": "--dry-run", - "tip": "Don't link anything." - }, - { - "name": "--frozen-lockfile", - "tip": "Disallow changes to lockfile." - }, - { - "name": "-f", - "alias": [ - "--force" - ], - "tip": [ - "U: -f|--force\n", - "Always request the latest versions from the registry & reinstall all dependencies." - ] - }, - { - "name": "--cache-dir", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cache-dir \n", - "Store & load cached data from a specific directory path." - ] - }, - { - "name": "--no-cache", - "tip": "Ignore manifest cache entirely." - }, - { - "name": "--silent", - "tip": "Don't log anything." - }, - { - "name": "--verbose", - "tip": "Excessively verbose logging." - }, - { - "name": "--no-progress", - "tip": "Disable the progress bar." - }, - { - "name": "--no-summary", - "tip": "Don't print a summary." - }, - { - "name": "--no-verify", - "tip": "Skip verifying integrity of newly downloaded packages." - }, - { - "name": "--ignore-scripts", - "tip": "Skip lifecycle scripts in the project's package.json. (dependency scripts are never run)" - }, - { - "name": "--trust", - "tip": "Add to trustedDependencies in the project's package.json and install the package(s)." - }, - { - "name": "-g", - "alias": [ - "--global" - ], - "tip": [ - "U: -g|--global\n", - "Link globally." - ] - }, - { - "name": "--cwd", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cwd \n", - "Set a specific cwd." - ] - }, - { - "name": "--backend", - "tip": [ - "Platform-specific optimizations for installing dependencies.\n", - "Possible values: \"hardlink\" (default), \"symlink\", \"copyfile\"" - ], - "next": [ - { - "name": "hardlink", - "tip": "default value" - }, - { - "name": "symlink" - }, - { - "name": "copyfile" - } - ] - }, - { - "name": "--link-native-bins", - "tip": "Link \"bin\" from a matching platform-specific \"optionalDependencies\" instead. Default: esbuild, turbo" - }, - { - "name": "--concurrent-scripts", - "tip": "Maximum number of concurrent jobs for lifecycle scripts (default 5)" - } - ] - }, - { - "name": "unlink", - "tip": [ - "U: unlink [flags] []\n", - "Unlink a local npm package." - ], - "options": [ - { - "name": "-y", - "alias": [ - "--yarn" - ], - "tip": [ - "U: -y|--yarn\n", - "Write a yarn.lock file. (yarn v1)" - ] - }, - { - "name": "-p", - "alias": [ - "--production" - ], - "tip": [ - "U: -p|--production\n", - "Don't unlink devDependencies." - ] - }, - { - "name": "--no-save", - "tip": "Don't update package.json or save a lockfile." - }, - { - "name": "--save", - "tip": "Save to package.json. (true by default)" - }, - { - "name": "--dry-run", - "tip": "Don't unlink anything." - }, - { - "name": "--frozen-lockfile", - "tip": "Disallow changes to lockfile." - }, - { - "name": "-f", - "alias": [ - "--force" - ], - "tip": [ - "U: -f|--force\n", - "Always request the latest versions from the registry & reinstall all dependencies." - ] - }, - { - "name": "--cache-dir", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cache-dir \n", - "Store & load cached data from a specific directory path." - ] - }, - { - "name": "--no-cache", - "tip": "Ignore manifest cache entirely." - }, - { - "name": "--silent", - "tip": "Don't log anything." - }, - { - "name": "--verbose", - "tip": "Excessively verbose logging." - }, - { - "name": "--no-progress", - "tip": "Disable the progress bar." - }, - { - "name": "--no-summary", - "tip": "Don't print a summary." - }, - { - "name": "--no-verify", - "tip": "Skip verifying integrity of newly downloaded packages." - }, - { - "name": "--ignore-scripts", - "tip": "Skip lifecycle scripts in the project's package.json. (dependency scripts are never run)" - }, - { - "name": "--trust", - "tip": "Add to trustedDependencies in the project's package.json and install the package(s)." - }, - { - "name": "-g", - "alias": [ - "--global" - ], - "tip": [ - "U: -g|--global\n", - "Unlink globally." - ] - }, - { - "name": "--cwd", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --cwd \n", - "Set a specific cwd." - ] - }, - { - "name": "--backend", - "tip": [ - "Platform-specific optimizations for installing dependencies.\n", - "Possible values: \"hardlink\" (default), \"symlink\", \"copyfile\"" - ], - "next": [ - { - "name": "hardlink", - "tip": "default value" - }, - { - "name": "symlink", - "tip": "default value" - }, - { - "name": "copyfile" - } - ] - }, - { - "name": "--link-native-bins", - "tip": "Link \"bin\" from a matching platform-specific \"optionalDependencies\" instead. Default: esbuild, turbo" - }, - { - "name": "--concurrent-scripts", - "tip": "Maximum number of concurrent jobs for lifecycle scripts (default 5)" - } - ] - }, - { - "name": "pm", - "tip": [ - "U: pm \n", - "Additional package management utilities." - ], - "next": [ - { - "name": "bin", - "tip": "print the path to bin folder", - "options": [ - { - "name": "-g", - "alias": [ - "--global" - ], - "tip": [ - "U: -g|--global\n", - "print the global bin folder" - ] - } - ] - }, - { - "name": "ls", - "tip": "list the dependency tree according to the current lockfile.", - "options": [ - { - "name": "--all", - "tip": "list the entire dependency tree according to the current lockfile." - } - ] - }, - { - "name": "hash", - "tip": "generate & print the hash of the current lockfile." - }, - { - "name": "hash-string", - "tip": "print the hash stored in the current lockfile." - }, - { - "name": "cache", - "tip": "print the path to the cache folder.", - "next": [ - { - "name": "rm", - "tip": "clear the cache" - } - ] - }, - { - "name": "migrate", - "tip": "migrate another package manager's lockfile without installing anything." - }, - { - "name": "untrusted", - "tip": "print current untrusted dependencies with scripts." - }, - { - "name": "default-trusted", - "tip": "print the default trusted dependencies list." - } - ] - }, - { - "name": "build", - "tip": [ - "U: build [...flags] [...entrypoints]\n", - "Transpile and bundle one or more files.\n", - "E: build ./a.ts ./b.jsx" - ], - "options": [ - { - "name": "--compile", - "tip": "Generate a standalone Bun executable containing your bundled code." - }, - { - "name": "--watch", - "tip": "Automatically restart the process on file change." - }, - { - "name": "--target", - "tip": [ - "The intended execution environment for the bundle.\n", - "\"browser\", \"bun\" or \"node\"" - ], - "next": [ - { - "name": "browser" - }, - { - "name": "bun" - }, - { - "name": "node" - } - ] - }, - { - "name": "--outdir", - "tip": "Default to \"dist\" if multiple files." - }, - { - "name": "--outfile", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --outfile \n", - "Write to a file" - ] - }, - { - "name": "--sourcemap", - "tip": "Build with sourcemaps - 'inline', 'external', or 'none'", - "next": [ - { - "name": "inline" - }, - { - "name": "external" - }, - { - "name": "none" - } - ] - }, - { - "name": "--format", - "tip": "Specifies the module format to build to. Only \"esm\" is supported." - }, - { - "name": "--root", - "tip": "Root directory used for multiple entry points." - }, - { - "name": "--splitting", - "tip": "Enable code splitting." - }, - { - "name": "--public-path", - "tip": "A prefix to be appended to any import paths in bundled code." - }, - { - "name": "-e", - "alias": [ - "--external" - ], - "symbol": "WriteSpaceTab", - "tip": [ - "U: -e|--external \n", - "Exclude module from transpilation (can use * wildcards).\n", - "E: -e react" - ] - }, - { - "name": "--entry-naming", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --entry-naming \n", - "Customize entry point filenames. Defaults to \"[dir]/[name].[ext]\"" - ] - }, - { - "name": "--chunk-naming", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --chunk-naming \n", - "Customize chunk filenames. Defaults to \"[name]-[hash].[ext]\"" - ] - }, - { - "name": "--asset-naming", - "symbol": "WriteSpaceTab", - "tip": [ - "U: --asset-naming \n", - "Customize asset filenames. Defaults to \"[name]-[hash].[ext]\"" - ] - }, - { - "name": "--server-components", - "tip": "Enable React Server Components. (experimental)" - }, - { - "name": "--no-bundle", - "tip": "Transpile file only, do not bundle." - }, - { - "name": "--minify", - "tip": "Enable all minification flags." - }, - { - "name": "--minify-syntax", - "tip": "Minify syntax and inline data." - }, - { - "name": "--minify-whitespace", - "tip": "Minify whitespace." - }, - { - "name": "--minify-identifiers", - "tip": "Minify identifiers." - }, - { - "name": "--conditions", - "tip": "Pass custom conditions to resolve." - } - ] - }, - { - "name": "init", - "tip": [ - "U: init [flags] [ ...]\n", - "Initialize a Bun project in the current directory.\n", - "Creates a package.json, tsconfig.json, and bunfig.toml if they don't exist." - ], - "options": [ - { - "name": "-y", - "alias": [ - "--yes" - ], - "tip": [ - "U: -y|--yes\n", - "Accept all default options." - ] - } - ] - }, - { - "name": "c", - "alias": [ - "create" - ], - "tip": [ - "U: c|create