From 046e4600df3c749cb2cdcfc1ccda63e10d52ec56 Mon Sep 17 00:00:00 2001 From: abgox Date: Tue, 11 Jun 2024 18:50:16 +0800 Subject: [PATCH] feat(completions): update ngrok --- completions/ngrok/config.json | 3 +- completions/ngrok/guid.txt | 2 +- completions/ngrok/language/en-US.json | 4 +- completions/ngrok/language/zh-CN.json | 77 ++++++++++++++++++++++++++- 4 files changed, 80 insertions(+), 6 deletions(-) diff --git a/completions/ngrok/config.json b/completions/ngrok/config.json index 15366b1..0a77759 100644 --- a/completions/ngrok/config.json +++ b/completions/ngrok/config.json @@ -1,5 +1,6 @@ { "language": [ - "en-US" + "en-US", + "zh-CN" ] } diff --git a/completions/ngrok/guid.txt b/completions/ngrok/guid.txt index 88bb743..9d31f45 100644 --- a/completions/ngrok/guid.txt +++ b/completions/ngrok/guid.txt @@ -1 +1 @@ -1b11254a-01c3-4c1f-8e20-1ef6dd2dcc19 +602e89b6-caed-4c7f-8619-bc5e9ae9af87 diff --git a/completions/ngrok/language/en-US.json b/completions/ngrok/language/en-US.json index d5b9c67..16d5895 100644 --- a/completions/ngrok/language/en-US.json +++ b/completions/ngrok/language/en-US.json @@ -86,8 +86,8 @@ "completion_info": { "url": "https://ngrok.com/", "description": [ - "ngrok - Unified Ingress Platform 
for developers\n", - "Connect localhost to the internet for testing applications and APIs" + "ngrok - Unified Ingress Platform for developers.\n", + "Connect localhost to the internet for testing applications and APIs." ] } } diff --git a/completions/ngrok/language/zh-CN.json b/completions/ngrok/language/zh-CN.json index 39e0f36..30c8e0f 100644 --- a/completions/ngrok/language/zh-CN.json +++ b/completions/ngrok/language/zh-CN.json @@ -1,5 +1,62 @@ { - "root": [], + "root": [ + { + "name": "api", + "tip": "使用 ngrok 代理作为 API 客户端" + }, + { + "name": "completion", + "tip": "生成 bash 或 zsh 的 shell 补全代码" + }, + { + "name": "config", + "tip": "更新或迁移 ngrok 的配置文件" + }, + { + "name": "credits", + "tip": "打印作者和许可信息" + }, + { + "name": "diagnose", + "tip": "诊断连接问题" + }, + { + "name": "help", + "tip": "有关任何命令的帮助" + }, + { + "name": "http", + "tip": "启动 HTTP 隧道" + }, + { + "name": "service", + "tip": "在目标操作系统上运行和控制 ngrok 服务" + }, + { + "name": "start", + "tip": "从配置文件中按名称启动隧道" + }, + { + "name": "tcp", + "tip": "启动 TCP 隧道" + }, + { + "name": "tls", + "tip": "启动 TLS 隧道" + }, + { + "name": "tunnel", + "tip": "启动用于隧道组后端的隧道" + }, + { + "name": "update", + "tip": "将 ngrok 更新到最新版本" + }, + { + "name": "version", + "tip": "打印版本信息" + } + ], "options": [ { "name": "--version", @@ -10,6 +67,13 @@ } ], "common_options": [ + { + "name": "--config", + "tip": [ + "指定配置文件的路径\n", + "如果有多个会被合并" + ] + }, { "name": "--help", "alias": [ @@ -17,5 +81,14 @@ ], "tip": "显示帮助信息" } - ] + ], + "info": { + "completion_info": { + "url": "https://ngrok.com/", + "description": [ + "ngrok - 面向开发人员的统一入口平台。\n", + "将 localhost 连接到 Internet 以测试应用程序和 API。" + ] + } + } }