mirror of
https://github.com/larksuite/cli.git
synced 2026-07-03 14:02:43 +08:00
* feat: add base view visible fields shortcuts and docs * docs: add view-create guidance for visible fields read * docs(base): refine visible fields reference wording * refactor(base): remove noop validate hook from view-set-visible-fields * docs: unify view-set-visible-fields example placeholders * docs: update visible fields example field placeholder * fix(base): pass parse context in view-set-visible-fields * feat: add tips for view-set-visible-fields json usage --------- Co-authored-by: kongenpei <kongenpei@users.noreply.github.com>
25 lines
714 B
Go
25 lines
714 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package base
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/larksuite/cli/shortcuts/common"
|
|
)
|
|
|
|
var BaseViewGetVisibleFields = common.Shortcut{
|
|
Service: "base",
|
|
Command: "+view-get-visible-fields",
|
|
Description: "Get view visible fields configuration",
|
|
Risk: "read",
|
|
Scopes: []string{"base:view:read"},
|
|
AuthTypes: authTypes(),
|
|
Flags: []common.Flag{baseTokenFlag(true), tableRefFlag(true), viewRefFlag(true)},
|
|
DryRun: dryRunViewGetVisibleFields,
|
|
Execute: func(ctx context.Context, runtime *common.RuntimeContext) error {
|
|
return executeViewGetProperty(runtime, "visible_fields", "visible_fields")
|
|
},
|
|
}
|