bf9395e022
CI / license-header (push) Has been skipped
CI / e2e-dry-run (push) Has been skipped
CI / fast-gate (push) Failing after 0s
Test PR Label Logic / test-pr-labels (push) Failing after 1s
Skill Format Check / check-format (push) Failing after 2s
CI / security (push) Failing after 5s
CI / unit-test (push) Has been skipped
CI / lint (push) Has been skipped
CI / script-test (push) Has been skipped
CI / deterministic-gate (push) Has been skipped
CI / coverage (push) Has been skipped
CI / results (push) Has been cancelled
CI / deadcode (push) Has been cancelled
CI / e2e-live (push) Has been cancelled
31 lines
898 B
Go
31 lines
898 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package base
|
|
|
|
import "github.com/larksuite/cli/shortcuts/common"
|
|
|
|
func authTypes() []string {
|
|
return []string{"user", "bot"}
|
|
}
|
|
|
|
func baseTokenFlag(required bool) common.Flag {
|
|
return common.Flag{Name: "base-token", Desc: "base token", Required: required}
|
|
}
|
|
|
|
func tableRefFlag(required bool) common.Flag {
|
|
return common.Flag{Name: "table-id", Desc: "table ID (must start with tbl if ID) or name", Required: required}
|
|
}
|
|
|
|
func fieldRefFlag(required bool) common.Flag {
|
|
return common.Flag{Name: "field-id", Desc: "field ID or name", Required: required}
|
|
}
|
|
|
|
func viewRefFlag(required bool) common.Flag {
|
|
return common.Flag{Name: "view-id", Desc: "view ID or name", Required: required}
|
|
}
|
|
|
|
func recordRefFlag(required bool) common.Flag {
|
|
return common.Flag{Name: "record-id", Desc: "record ID", Required: required}
|
|
}
|