make yaml the default on the cli

This commit is contained in:
Ruben Fiszel
2023-05-05 09:08:28 +02:00
parent 326f82b580
commit a312988c6f
2 changed files with 6 additions and 7 deletions
-1
View File
@@ -133,7 +133,6 @@ export async function handleFile(
return true;
}
}
console.log(typed);
await ScriptService.createScript({
workspace,
requestBody: {
+6 -6
View File
@@ -280,7 +280,7 @@ async function pull(
yes: boolean;
failConflicts: boolean;
plainSecrets?: boolean;
yaml?: boolean;
json?: boolean;
}
) {
if (!opts.raw) {
@@ -297,7 +297,7 @@ async function pull(
);
const remote = ZipFSElement(
(await downloadZip(workspace, opts.plainSecrets))!,
opts.yaml ?? false
opts.json ?? true
);
const local = opts.raw
? undefined
@@ -478,7 +478,7 @@ async function push(
skipPull: boolean;
failConflicts: boolean;
plainSecrets?: boolean;
yaml?: boolean;
json?: boolean;
}
) {
if (!opts.raw) {
@@ -504,7 +504,7 @@ async function push(
? undefined
: ZipFSElement(
(await downloadZip(workspace, opts.plainSecrets))!,
opts.yaml ?? false
opts.json ?? true
);
const local = await FSFSElement(path.join(Deno.cwd(), ""));
const changes = await compareDynFSElement(local, remote, await ignoreF());
@@ -700,7 +700,7 @@ const command = new Command()
.option("--yes", "Pull without needing confirmation")
.option("--raw", "Pull without using state, just overwrite.")
.option("--plain-secrets", "Pull secrets as plain text")
.option("--yaml", "Use YAML instead of JSON")
.option("--json", "Use JSON instead of YAML")
// deno-lint-ignore no-explicit-any
.action(pull as any)
.command("push")
@@ -715,7 +715,7 @@ const command = new Command()
.option("--yes", "Push without needing confirmation")
.option("--raw", "Push without using state, just overwrite.")
.option("--plain-secrets", "Push secrets as plain text")
.option("--yaml", "Use YAML instead of JSON")
.option("--json", "Use JSON instead of YAML")
// deno-lint-ignore no-explicit-any
.action(push as any);