fix(cli): fix opts.yes for instance sync

This commit is contained in:
Ruben Fiszel
2024-10-03 21:31:03 +02:00
parent be4b9a8d7d
commit e279c2eea7
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -336,6 +336,7 @@ async function instancePull(opts: GlobalOptions & InstanceSyncOptions) {
includeSettings: true,
includeUsers: true,
includeKey: true,
yes: opts.yes,
});
}
@@ -489,6 +490,7 @@ async function instancePush(opts: GlobalOptions & InstanceSyncOptions) {
includeSettings: true,
includeUsers: true,
includeKey: true,
yes: opts.yes,
});
}
+3 -3
View File
@@ -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:
@@ -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,
}))
) {
@@ -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,
}))
) {