mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-17 03:02:14 +00:00
feat: add internal hooks system
This commit is contained in:
parent
a76cbc43bb
commit
faba508fe0
39 changed files with 4241 additions and 28 deletions
|
|
@ -20,6 +20,7 @@ import {
|
|||
import { defaultRuntime } from "../runtime.js";
|
||||
import { formatDocsLink } from "../terminal/links.js";
|
||||
import { theme } from "../terminal/theme.js";
|
||||
import { registerInternalHooksSubcommands } from "./hooks-internal-cli.js";
|
||||
|
||||
export function registerHooksCli(program: Command) {
|
||||
const hooks = program
|
||||
|
|
@ -31,6 +32,9 @@ export function registerHooksCli(program: Command) {
|
|||
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/hooks", "docs.clawd.bot/cli/hooks")}\n`,
|
||||
);
|
||||
|
||||
// Register internal hooks management subcommands
|
||||
registerInternalHooksSubcommands(hooks);
|
||||
|
||||
const gmail = hooks.command("gmail").description("Gmail Pub/Sub hooks (via gogcli)");
|
||||
|
||||
gmail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue