mirror of
https://github.com/larksuite/cli.git
synced 2026-09-14 18:42:53 +08:00
bd38b9b3c4
Add drive +member-remove for removing one collaborator permission from Drive documents, files, folders, wiki nodes, and Miaoda apps. The shortcut validates resource and member contracts before issuing the high-risk DELETE request, preserves structured CLI errors, and documents identity and wiki permission behavior. Key features: - Resolve resource type from supported URLs or require it for bare tokens - Accept Miaoda apps via /page/ URLs or explicit --type=apps - Support user and bot identities with member-type-specific validation - Require explicit confirmation and return stable removal metadata - Reject unsupported slash-containing tokens and member IDs before API calls - Add unit, dry-run E2E, live workflow, and skill documentation coverage
54 lines
1.0 KiB
Go
54 lines
1.0 KiB
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package drive
|
|
|
|
import "github.com/larksuite/cli/shortcuts/common"
|
|
|
|
// Shortcuts returns all drive shortcuts.
|
|
func Shortcuts() []common.Shortcut {
|
|
return []common.Shortcut{
|
|
DriveUpload,
|
|
DriveCreateFolder,
|
|
DriveCreateShortcut,
|
|
DriveCopy,
|
|
DriveDownload,
|
|
DrivePreview,
|
|
DriveCover,
|
|
DriveAddComment,
|
|
DriveListComments,
|
|
DriveBatchQueryComments,
|
|
DriveResolveComment,
|
|
DriveRestoreComment,
|
|
DriveAddReply,
|
|
DriveListReplies,
|
|
DriveUpdateReply,
|
|
DriveDeleteReply,
|
|
DriveReactReply,
|
|
DriveExport,
|
|
DriveExportDownload,
|
|
DriveImport,
|
|
DriveVersionHistory,
|
|
DriveVersionGet,
|
|
DriveVersionRevert,
|
|
DriveVersionDelete,
|
|
DriveMove,
|
|
DriveUpdateTitle,
|
|
DriveDelete,
|
|
DriveStatus,
|
|
DrivePush,
|
|
DrivePull,
|
|
DriveSync,
|
|
DriveTaskResult,
|
|
DriveApplyPermission,
|
|
DriveMemberAdd,
|
|
DriveMemberList,
|
|
DriveMemberRemove,
|
|
DrivePermissionGetSetting,
|
|
DriveSecureLabelList,
|
|
DriveSecureLabelUpdate,
|
|
DriveSearch,
|
|
DriveInspect,
|
|
}
|
|
}
|