mirror of
https://github.com/larksuite/cli.git
synced 2026-07-06 16:18:05 +08:00
33 lines
936 B
Go
33 lines
936 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package base
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/larksuite/cli/shortcuts/common"
|
|
)
|
|
|
|
var BaseDashboardArrange = common.Shortcut{
|
|
Service: "base",
|
|
Command: "+dashboard-arrange",
|
|
Description: "Auto-arrange dashboard blocks layout (server-side smart layout)",
|
|
Risk: "write",
|
|
Scopes: []string{"base:dashboard:update"},
|
|
AuthTypes: authTypes(),
|
|
HasFormat: true,
|
|
Flags: []common.Flag{
|
|
baseTokenFlag(true),
|
|
dashboardIDFlag(true),
|
|
{Name: "user-id-type", Desc: "user ID type: open_id / union_id / user_id"},
|
|
},
|
|
Tips: []string{
|
|
"Server-side smart layout is not deterministic or position-specific; use only when the user asks to arrange or beautify a dashboard.",
|
|
},
|
|
DryRun: dryRunDashboardArrange,
|
|
Execute: func(ctx context.Context, runtime *common.RuntimeContext) error {
|
|
return executeDashboardArrange(runtime)
|
|
},
|
|
}
|