Unify assistance link duration parsing with hour floor and stderr hints
This commit is contained in:
1 parent
c094980ae5
commit
0296c2bff2
4 files changed
+133
-39
No files matched your search
+3
-3
@@ -840,7 +840,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
],
|
||||
options: [
|
||||
{ flag: "--note <note>", description: "委托授权备注说明(如:演示测试、外部审计)" },
|
||||
{ flag: "--expire, --expires-in <duration>", description: "委托授权有效期(1~168 小时,即最大 7 天),默认 24h,支持 7d、168h、24h 等" },
|
||||
{ flag: "--expire, --expires-in <duration>", description: "委托授权有效期,推荐 '7d' 或 '24h'(最大 7 天,兼容秒数并自动向下取整)" },
|
||||
{ flag: "--from-link <url>", description: "直接由合思协助链接换取 Seal 委托直达链接" }
|
||||
],
|
||||
description:
|
||||
@@ -862,7 +862,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
summary: "【合思外部主站】生成免密登录/第三方协助入口链接",
|
||||
usage: ["seal-use auth hose-link [--corp <corpId>] [--expire <duration>] [--force]"],
|
||||
options: [
|
||||
{ flag: "--expire, --expires-in <duration>", description: "链接有效时间,默认 7200 秒(2h),支持 7d、2h、86400 等" },
|
||||
{ flag: "--expire, --expires-in <duration>", description: "链接有效时间,推荐 '7d' 或 '2h'(默认 2h,兼容秒数如 7200)" },
|
||||
{ flag: "--force, --refresh, -f", description: "强制向合思 OpenAPI 申请全新临时凭证" }
|
||||
],
|
||||
description:
|
||||
@@ -916,7 +916,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
usage: ["seal-use users delegation <userIdOrPhone|name> [--note <note>] [--expire <duration>] [--corp <corpId>]"],
|
||||
options: [
|
||||
{ flag: "--note <note>", description: "委托授权备注说明" },
|
||||
{ flag: "--expire, --expires-in <duration>", description: "委托授权有效期(1~168 小时,即最大 7 天),默认 24h,支持 7d、168h、24h 等" }
|
||||
{ flag: "--expire, --expires-in <duration>", description: "委托授权有效期,推荐 '7d' 或 '24h'(最大 7 天,兼容秒数并自动向下取整)" }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user