From 08fea3a85b22ca32f393dc0174c64ce24d809e37 Mon Sep 17 00:00:00 2001 From: luozhixiong Date: Fri, 26 Jun 2026 16:54:38 +0800 Subject: [PATCH] docs: trim set-app-secret --help to drop info already in the flags table --- cmd/config/set_app_secret.go | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/cmd/config/set_app_secret.go b/cmd/config/set_app_secret.go index 45a42ca22..459e6f135 100644 --- a/cmd/config/set_app_secret.go +++ b/cmd/config/set_app_secret.go @@ -33,22 +33,11 @@ func NewCmdConfigSetAppSecret(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "set-app-secret", Short: "Rotate a profile's stored app secret (verified before saving)", - Long: `Update a profile's app secret after you reset it on the Lark/Feishu open -platform. The new secret is piped to stdin (--app-secret-stdin) and -verified against Lark before anything is saved; only the target profile -changes. + Long: `Rotate a profile's app secret after you reset it on the Lark/Feishu open platform. +The new secret is verified against Lark before anything is saved; only the target +profile changes — other profiles and the active selection stay untouched. -Defaults to the active profile; use the global --profile to -target another. - -Without --yes it previews the target (profile + app_id) and exits 10 -without reading stdin or writing anything — confirm it is the right bot, -then re-run with --yes. AI agents: show the preview to the user first, and -on the re-run pass --profile to pin that exact bot. - -Example: - read -rs S; printf '%s' "$S" | lark-cli --profile \ - config set-app-secret --app-secret-stdin --yes`, +Targets the active profile; use the global --profile to pick another.`, RunE: func(cmd *cobra.Command, args []string) error { return setAppSecretRun(f, opts) },