refactor(cli): purge short hose alias and standardize on hose-use across docs, scripts, and prompts

This commit is contained in:
gitea committed 2026-09-06 22:26:04 +08:00
1 parent 304a8c0d98
commit 2f8bcb90c9
31 files changed
+190 -191

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { getPermissions } from "../../domains/permission/tools.js";
export async function handlePermissionCommand(parsed: CliParsedArgs, runtime: CliRuntime): Promise<CliResult> {
const corp = runtime.selectedCorp;
if (!corp) throw new Error("未指定或未找到有效企业。请通过 --corp=<id> 指定企业,或运行 hose auth login 登录。");
if (!corp) throw new Error("未指定或未找到有效企业。请通过 --corp=<id> 指定企业,或运行 hose-use auth login 登录。");
const action = parsed.action?.toLowerCase() || "get";
if (!["get", "list", "show"].includes(action)) throw new Error(`未知 permission 子命令: ${action}。支持: get`);
const client = await createEkbClient(corp);