Skip to content

Commit

Permalink
nix: only json output for postgrest-dump-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenceisla authored and wolfgangwalther committed Mar 7, 2024
1 parent c276e97 commit cf7b9ba
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions nix/tools/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,15 @@ 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 ];
}
''
${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 =
Expand Down

0 comments on commit cf7b9ba

Please sign in to comment.