shortcuts

package
v1.0.90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllShortcuts

func AllShortcuts() []common.Shortcut

AllShortcuts returns an isolated copy of all registered shortcuts.

This is the isolation boundary, and the only place that needs to deep-copy: the package global is filled once by init and never written again, but a Shortcut carries slice fields whose backing arrays a shallow copy would still share, so an external distribution mutating an element (registered[0].Flags[0]) would corrupt the global for the whole process. Callers inside this repository receive an already-isolated snapshot and must not clone it again -- the copy costs ~165us over 500+ shortcuts, which lands on every CLI startup.

func AllShortcutsWithExternal added in v1.0.90

func AllShortcutsWithExternal(commands []common.Shortcut) ([]common.Shortcut, error)

AllShortcutsWithExternal returns one isolated shortcut snapshot after validating external path collisions.

func IsShortcutServiceAvailable added in v1.0.38

func IsShortcutServiceAvailable(service string, brand core.LarkBrand) bool

func RegisterShortcutSnapshotWithContext added in v1.0.90

func RegisterShortcutSnapshotWithContext(ctx context.Context, program *cobra.Command, f *cmdutil.Factory, registered []common.Shortcut)

RegisterShortcutSnapshotWithContext mounts one build-local shortcut snapshot.

func RegisterShortcuts

func RegisterShortcuts(program *cobra.Command, f *cmdutil.Factory)

RegisterShortcuts registers all +shortcut commands on the program.

func RegisterShortcutsWithContext added in v1.0.16

func RegisterShortcutsWithContext(ctx context.Context, program *cobra.Command, f *cmdutil.Factory)

Types

This section is empty.

Directories

Path Synopsis
Package application provides shortcuts for Open Platform app self-management (slash commands of the current bound app).
Package application provides shortcuts for Open Platform app self-management (slash commands of the current bound app).
gitcred
Package gitcred manages the lifecycle of app Git credentials.
Package gitcred manages the lifecycle of app Git credentials.
recordexport
Package recordexport converts the Base OpenAPI record matrix into a stable, typed row model that output formats can share.
Package recordexport converts the Base OpenAPI record matrix into a stable, typed row model that output formats can share.
doc
internal/docxparse
Package docxparse parses LarkOpenCLI DocxXML into a small DOM for the docs +script shortcut.
Package docxparse parses LarkOpenCLI DocxXML into a small DOM for the docs +script shortcut.
im
emlbuilder
Package emlbuilder provides a Lark-API-compatible RFC 2822 EML message builder.
Package emlbuilder provides a Lark-API-compatible RFC 2822 EML message builder.
filecheck
Package filecheck provides mail attachment file validation utilities shared by the emlbuilder and draft packages.
Package filecheck provides mail attachment file validation utilities shared by the emlbuilder and draft packages.
ics
Package ics provides RFC 5545 iCalendar generation and parsing for mail calendar invitations.
Package ics provides RFC 5545 iCalendar generation and parsing for mail calendar invitations.
lint
Package lint implements the mail-domain HTML lint lib used by `+lint-html` and the writing-path internals of the compose 5 shortcuts (`+send`, `+draft-create`, `+reply`, `+reply-all`, `+forward`) and `+draft-edit` body ops.
Package lint implements the mail-domain HTML lint lib used by `+lint-html` and the writing-path internals of the compose 5 shortcuts (`+send`, `+draft-create`, `+reply`, `+reply-all`, `+forward`) and `+draft-edit` body ops.
Package note owns the Note domain: querying note detail and the unified transcript by a known note_id.
Package note owns the Note domain: querying note detail and the unified transcript by a known note_id.
Package sheets contains lark-sheets shortcuts aligned with the sheet-skill-spec canonical layout.
Package sheets contains lark-sheets shortcuts aligned with the sheet-skill-spec canonical layout.
internal/gen command
Command gen regenerates flag_defs_gen.go and flag_schemas_gen.go from the data/*.json spec artifacts, so command startup pays no JSON unmarshal.
Command gen regenerates flag_defs_gen.go and flag_schemas_gen.go from the data/*.json spec artifacts, so command startup pays no JSON unmarshal.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL