{"modulePath":"github.com/pencode-labs/pencode","version":"v0.1.0-rc.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package actions\n\nPackage actions provides the shared workbench button registry for native code and extensions. Mutations are thread safe; callbacks run on the UI thread.\n\n## Functions\n\n```go\nfunc Validate(a peb.Action) error\n```\n\n## Types\n\n```go\ntype Definition struct {\n\tRun func(peb.ActionContext) error\n\tpeb.Action\n}\n```\n\n```go\ntype Registry struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r *Registry) Register(d Definition) error\n```\n\n```go\nfunc (r *Registry) Remove(id string)\n```\n\n```go\nfunc (r *Registry) RemovePrefix(prefix string)\n```\nRemovePrefix removes an owner's buttons in a single pass.\n\n```go\nfunc (r *Registry) Run(c peb.ActionContext) error\n```\n\n```go\nfunc (r *Registry) SetWake(wake func())\n```\n\n```go\nfunc (r *Registry) Snapshot(dst []peb.Action, revision uint64) ([]peb.Action, uint64)\n```\nSnapshot copies only when the revision changes and reuses dst's capacity.\n\n```go\nfunc (r *Registry) Update(a peb.Action) error\n```\n\n","path":"github.com/pencode-labs/pencode/actions","name":"actions","synopsis":"Package actions provides the shared workbench button registry for native code and extensions.","isRedistributable":true}
