From 2ca00e3f8adee8549f99a4f5699588b9ae8f1901 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 6 May 2023 11:44:54 +0200 Subject: [PATCH] cli improvements --- cli/sync.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cli/sync.ts b/cli/sync.ts index e0ef5d9fd1..1cf6abb5b7 100644 --- a/cli/sync.ts +++ b/cli/sync.ts @@ -60,9 +60,7 @@ async function FSFSElement(p: string): Promise { // }, async getContentText(): Promise { const content = await Deno.readTextFile(localP); - return p.endsWith(".yaml") - ? JSON.stringify(yamlParse(content)) - : content; + return content; }, }; } @@ -397,7 +395,7 @@ async function pull( ); const remote = ZipFSElement( (await downloadZip(workspace, opts.plainSecrets))!, - opts.json ?? true + !opts.json ); const local = opts.raw ? undefined @@ -604,7 +602,7 @@ async function push( ? undefined : ZipFSElement( (await downloadZip(workspace, opts.plainSecrets))!, - opts.json ?? true + !opts.json ); const local = await FSFSElement(path.join(Deno.cwd(), "")); const changes = await compareDynFSElement(local, remote, await ignoreF());