From cf7b9bad083ac1c675b65eecdf961c795f0f91fc Mon Sep 17 00:00:00 2001 From: Laurence Isla Date: Tue, 5 Mar 2024 17:39:45 -0500 Subject: [PATCH] nix: only json output for postgrest-dump-schema --- nix/tools/tests.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nix/tools/tests.nix b/nix/tools/tests.nix index 224e46c4e..92769e17e 100644 --- a/nix/tools/tests.nix +++ b/nix/tools/tests.nix @@ -91,10 +91,7 @@ let checkedShellScript { name = "postgrest-dump-schema"; - docs = "Dump the loaded schema's SchemaCache in JSON or Yaml format."; - args = [ - "ARG_OPTIONAL_BOOLEAN([yaml], [y], [Dump the schema cache in Yaml format])" - ]; + docs = "Dump the loaded schema's SchemaCache in JSON format."; workingDir = "/"; withEnv = postgrest.env; withPath = [ jq ]; @@ -102,8 +99,7 @@ let '' ${withTools.withPg} -f test/spec/fixtures/load.sql \ ${cabal-install}/bin/cabal v2-run ${devCabalOptions} --verbose=0 -- \ - postgrest --dump-schema \ - | if [ "$_arg_yaml" = on ]; then ${yq}/bin/yq -y .; else cat; fi + postgrest --dump-schema ''; coverage =