examples/

directory
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT

README

lark-cli plugin examples

Runnable fork-and-blank-import examples that demonstrate the Plugin SDK in production-shape. Each subdirectory is a complete main package: go build . produces a working CLI.

Example What it shows
audit-observer Simplest possible plugin: one Observer matching every command, logs to stderr.
readonly-policy Policy plugin: Restrict() with MaxRisk=read, demonstrates the FailClosed + Restricts=true auto-pairing.

All examples are built by CI (make examples-build) so they cannot silently drift from the SDK.

Directories

Path Synopsis
Command audit-observer is a runnable fork of lark-cli that logs every dispatched command to stderr.
Command audit-observer is a runnable fork of lark-cli that logs every dispatched command to stderr.
Command readonly-policy is a runnable fork of lark-cli that installs a Rule permitting only docs/* and im/* read commands.
Command readonly-policy is a runnable fork of lark-cli that installs a Rule permitting only docs/* and im/* read commands.

Jump to

Keyboard shortcuts

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