Documentation
¶
Overview ¶
Command chat-brief is a runnable lark-cli distribution that contributes two business commands to the existing im domain via WithCommandSets:
im +chat-brief single read: Validate, shared DryRun request, CallJSON im +chat-brief-list list read: Page[T] Data auto-installs --page-all/--page-limit/--page-delay
Unlike the test fixture under testdata/wrapper, this example keeps the real distribution shape: plugins, strict mode, and service commands all stay enabled; only the command sets are added.
Build & run:
cd extension/command/examples/chat-brief go build -o chat-brief-cli . ./chat-brief-cli im +chat-brief --help # description + flags from tags ./chat-brief-cli im +chat-brief --chat-id oc_xxx --dry-run # request preview, sends nothing ./chat-brief-cli im +chat-brief --chat-id oc_xxx # real call (requires auth login) ./chat-brief-cli im +chat-brief-list --page-all --page-limit 2 # framework pagination flags ./chat-brief-cli auth login --domain im # aggregates business scopes too go test ./... # hooks under commandtest, no network
Click to show internal directories.
Click to hide internal directories.