Skip to content

Commit

Permalink
fix last merge commit (raw copy from upstream)
Browse files Browse the repository at this point in the history
  • Loading branch information
BretzelLudique committed Oct 31, 2024
1 parent 161c468 commit 7fdbc1b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions cli/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export async function pickInstance(
name: opts.instance,
remote: opts.baseUrl,
token: opts.token,
prefix: opts.instance,
prefix: opts.prefix ?? opts.instance,
};
}
if (opts.baseUrl && opts.token) {
Expand All @@ -218,7 +218,7 @@ export async function pickInstance(
name: "custom",
remote: opts.baseUrl,
token: opts.token,
prefix: "custom",
prefix: opts.prefix ?? "custom",
};
}
if (!allowNew && instances.length < 1) {
Expand Down Expand Up @@ -705,6 +705,11 @@ const command = new Command()
"--instance <instance:string>",
"Name of the instance to pull from, override the active instance"
)
.option(
"--prefix <prefix:string>",
"Prefix of the local workspaces to pull, used to create the folders when using --include-workspaces"
)

.action(instancePull as any)
.command("push")
.description(
Expand All @@ -721,7 +726,10 @@ const command = new Command()
"--instance <instance:string>",
"Name of the instance to push to, override the active instance"
)
.option("--prefix <prefix:string>", "Prefix of the local workspaces to push")
.option(
"--prefix <prefix:string>",
"Prefix of the local workspaces folders to push"
)
.action(instancePush as any)
.command("whoami")
.description("Display information about the currently logged-in user")
Expand Down

0 comments on commit 7fdbc1b

Please sign in to comment.