chat-brief

command
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: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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