Skip to content

Commit

Permalink
fix(cli): fix opts.yes for instance sync
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Oct 3, 2024
1 parent b96cc19 commit 26659ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cli/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ async function instancePull(opts: GlobalOptions & InstanceSyncOptions) {
includeSettings: true,
includeUsers: true,
includeKey: true,
yes: opts.yes,
});
}

Expand Down Expand Up @@ -489,6 +490,7 @@ async function instancePush(opts: GlobalOptions & InstanceSyncOptions) {
includeSettings: true,
includeUsers: true,
includeKey: true,
yes: opts.yes,
});
}

Expand Down
6 changes: 3 additions & 3 deletions cli/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function ZipFSElement(

if (formatExtension) {
const fileContent: string = parsed["value"]["content"];
if (typeof(fileContent) === "string") {
if (typeof fileContent === "string") {
r.push({
isDirectory: false,
path:
Expand Down Expand Up @@ -948,7 +948,7 @@ export async function pull(opts: GlobalOptions & SyncOptions) {
if (
!opts.yes &&
!(await Confirm.prompt({
message: `Do you want to apply these ${changes.length} changes?`,
message: `Do you want to apply these ${changes.length} changes to your local files?`,
default: true,
}))
) {
Expand Down Expand Up @@ -1251,7 +1251,7 @@ export async function push(opts: GlobalOptions & SyncOptions) {
if (
!opts.yes &&
!(await Confirm.prompt({
message: `Do you want to apply these ${changes.length} changes?`,
message: `Do you want to apply these ${changes.length} changes to the remote?`,
default: true,
}))
) {
Expand Down

0 comments on commit 26659ce

Please sign in to comment.