Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use deploy --out instead of stdout #1258

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Use deploy --out instead of stdout #1258

wants to merge 1 commit into from

Conversation

chgeo
Copy link
Contributor

@chgeo chgeo commented Sep 17, 2024

The new param cds deploy --out <file> allows writing DDL statements to a separate file.

This is needed by CAP Java to replace their stdout redirection (cds deploy --dry > schema.sql). That one fails if debug traces are on as these mess up the output.

So,

cds deploy --to h2 --dry > schema.sql

can change to

cds deploy --to h2 --dry --out schema.sql

Also, one can now request the log independently of the dry mode to get an additional log:

cds deploy --to h2 --out schema.sql

@chgeo chgeo marked this pull request as ready for review September 18, 2024 07:16
@chgeo
Copy link
Contributor Author

chgeo commented Sep 18, 2024

@mofterdinger can you review this one?

@chgeo
Copy link
Contributor Author

chgeo commented Sep 18, 2024

BTW: we have also added a check in cds deploy that will error if the sap/cds version is too old to understand --out (versions < 8.3.0). This way we detect mismatches between @sap/cds-dk and @sap/cds versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant