mirror of
https://github.com/larksuite/cli.git
synced 2026-09-14 18:42:53 +08:00
a6f3e635d4
* feat(docs): add local authoring and resource workflows Add docs +script workflows for isolated draft initialization and tolerant XML/Markdown profiling. Support local and remote document resources across create and update flows with safe, bounded-concurrency uploads, binding verification, and cleanup. Synchronize shared credential-source selection during concurrent uploads, refresh lark-doc guidance, and expand unit, dry-run, and live E2E coverage. * docs(lark-doc): clarify genre reference paths * fix(docs): address PR validation feedback * docs(lark-doc): clarify remote image handling * feat: streamline docs draft workflow * fix(docs): clarify script input and resource cleanup * fix(docs): align script dry-run test with auth flow * fix(docs): authenticate local script e2e test * fix(docs): refine script diagnostics and image preflight * fix(docs): align draft workspace cleanup with VFS * fix(docs): route workspace cleanup through FileIO * docs(lark-doc): simplify profile check guidance
33 lines
803 B
Go
33 lines
803 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package doc
|
|
|
|
import "github.com/larksuite/cli/shortcuts/common"
|
|
|
|
const (
|
|
docsCreateContentFlagBase = "document body; XML by default or Markdown when --doc-format markdown."
|
|
docsUpdateContentFlagBase = "replacement or inserted content; XML by default or Markdown when --doc-format markdown; empty with str_replace deletes match."
|
|
)
|
|
|
|
// Shortcuts returns all docs shortcuts.
|
|
func Shortcuts() []common.Shortcut {
|
|
return []common.Shortcut{
|
|
DocsSearch,
|
|
DocsCreate,
|
|
DocsFetch,
|
|
DocsUpdate,
|
|
DocsScript,
|
|
DocsHistoryList,
|
|
DocsHistoryRevert,
|
|
DocsHistoryRevertStatus,
|
|
DocMediaInsert,
|
|
DocMediaUpload,
|
|
DocMediaPreview,
|
|
DocMediaDownload,
|
|
DocResourceDownload,
|
|
DocResourceUpdate,
|
|
DocResourceDelete,
|
|
}
|
|
}
|