refactor(src): split oversized modules
This commit is contained in:
33
src/cli/cron-cli/register.ts
Normal file
33
src/cli/cron-cli/register.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import type { Command } from "commander";
|
||||
import { formatDocsLink } from "../../terminal/links.js";
|
||||
import { theme } from "../../terminal/theme.js";
|
||||
import {
|
||||
registerCronAddCommand,
|
||||
registerCronListCommand,
|
||||
registerCronStatusCommand,
|
||||
} from "./register.cron-add.js";
|
||||
import { registerCronEditCommand } from "./register.cron-edit.js";
|
||||
import { registerCronSimpleCommands } from "./register.cron-simple.js";
|
||||
import { registerWakeCommand } from "./register.wake.js";
|
||||
|
||||
export function registerCronCli(program: Command) {
|
||||
registerWakeCommand(program);
|
||||
|
||||
const cron = program
|
||||
.command("cron")
|
||||
.description("Manage cron jobs (via Gateway)")
|
||||
.addHelpText(
|
||||
"after",
|
||||
() =>
|
||||
`\n${theme.muted("Docs:")} ${formatDocsLink(
|
||||
"/cron-jobs",
|
||||
"docs.clawd.bot/cron-jobs",
|
||||
)}\n`,
|
||||
);
|
||||
|
||||
registerCronStatusCommand(cron);
|
||||
registerCronListCommand(cron);
|
||||
registerCronAddCommand(cron);
|
||||
registerCronSimpleCommands(cron);
|
||||
registerCronEditCommand(cron);
|
||||
}
|
||||
Reference in New Issue
Block a user