mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
fix(cli): fix opts.yes for instance sync
This commit is contained in:
@@ -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
@@ -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,
|
||||
}))
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user