mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 02:40:39 +09:00
Add worktree init CLI for isolated development instances
This commit is contained in:
parent
49b9511889
commit
0704854926
9 changed files with 760 additions and 7 deletions
|
|
@ -16,6 +16,8 @@ import { registerApprovalCommands } from "./commands/client/approval.js";
|
|||
import { registerActivityCommands } from "./commands/client/activity.js";
|
||||
import { registerDashboardCommands } from "./commands/client/dashboard.js";
|
||||
import { applyDataDirOverride, type DataDirOptionLike } from "./config/data-dir.js";
|
||||
import { loadPaperclipEnvFile } from "./config/env.js";
|
||||
import { registerWorktreeCommands } from "./commands/worktree.js";
|
||||
|
||||
const program = new Command();
|
||||
const DATA_DIR_OPTION_HELP =
|
||||
|
|
@ -33,6 +35,7 @@ program.hook("preAction", (_thisCommand, actionCommand) => {
|
|||
hasConfigOption: optionNames.has("config"),
|
||||
hasContextOption: optionNames.has("context"),
|
||||
});
|
||||
loadPaperclipEnvFile(options.config);
|
||||
});
|
||||
|
||||
program
|
||||
|
|
@ -132,6 +135,7 @@ registerAgentCommands(program);
|
|||
registerApprovalCommands(program);
|
||||
registerActivityCommands(program);
|
||||
registerDashboardCommands(program);
|
||||
registerWorktreeCommands(program);
|
||||
|
||||
const auth = program.command("auth").description("Authentication and bootstrap utilities");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue