Skip to content

Commit 1612df9

Browse files
committed
feat: repo flag
1 parent 913c1ef commit 1612df9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

extensions/cli/src/commands/remote.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export async function remote(
1515
idempotencyKey?: string;
1616
start?: boolean;
1717
branch?: string;
18+
repo?: string;
1819
} = {},
1920
) {
2021
// Check if prompt should come from stdin instead of parameter
@@ -79,7 +80,7 @@ export async function remote(
7980
const accessToken = getAccessToken(authConfig);
8081

8182
const requestBody: any = {
82-
repoUrl: getRepoUrl(),
83+
repoUrl: options.repo || getRepoUrl(),
8384
name: `devbox-${Date.now()}`,
8485
prompt: actualPrompt,
8586
idempotencyKey: options.idempotencyKey,

extensions/cli/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ program
202202
"--branch <branch>",
203203
"Specify the git branch name to use in the remote environment",
204204
)
205+
.option(
206+
"--repo <url>",
207+
"Specify the repository URL to use in the remote environment",
208+
)
205209
.action(async (prompt: string | undefined, options) => {
206210
await remote(prompt, options);
207211
});

0 commit comments

Comments
 (0)