mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-07 17:04:42 +00:00
Merge remote-tracking branch 'origin/main' into paseo-cloud-worktree-plan
This commit is contained in:
@@ -26,6 +26,7 @@ import { addArchiveOptions, runArchiveCommand } from "./commands/agent/archive.j
|
||||
import { addAttachOptions, runAttachCommand } from "./commands/agent/attach.js";
|
||||
import { addImportOptions, runImportCommand } from "./commands/agent/import.js";
|
||||
import { withOutput } from "./output/index.js";
|
||||
import { runCloneCommand } from "./commands/clone.js";
|
||||
import { onboardCommand } from "./commands/onboard.js";
|
||||
import {
|
||||
addDaemonHostOption,
|
||||
@@ -67,6 +68,20 @@ export function createCli(): Command {
|
||||
withOutput(runImportCommand),
|
||||
);
|
||||
|
||||
addJsonAndDaemonHostOptions(
|
||||
program
|
||||
.command("clone")
|
||||
.description("Clone a GitHub repo and register it as a Paseo workspace")
|
||||
.argument("<repo>", "GitHub repo in owner/repo format or a full git remote URL")
|
||||
.requiredOption("--dir <path>", "Parent directory to clone into (for example: ~/workspace)"),
|
||||
)
|
||||
.addOption(
|
||||
new Option("--protocol <protocol>", "Protocol for owner/repo shorthand repositories").choices(
|
||||
["https", "ssh"],
|
||||
),
|
||||
)
|
||||
.action(withOutput(runCloneCommand));
|
||||
|
||||
addDaemonHostOption(addAttachOptions(program.command("attach"))).action(runAttachCommand);
|
||||
|
||||
addDaemonHostOption(addLogsOptions(program.command("logs"))).action(runLogsCommand);
|
||||
|
||||
Reference in New Issue
Block a user