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

Format variables in merge export --output-file #2452

Open
Rankarusu opened this issue Dec 5, 2023 · 0 comments
Open

Format variables in merge export --output-file #2452

Rankarusu opened this issue Dec 5, 2023 · 0 comments

Comments

@Rankarusu
Copy link

Expected Behavior

It would be nice if I had access to variables for timestamp, space-id, source-environment-id and target-environment-id inside merge export --output-file so I dont have to query all that data myself when I want to save my generated migrations to a different path. I'm thinking of something that date libraries usually do where you can use something like %d. %m. %Y and these variables get replaced by the corresponding data.

Actual Behavior

I can either use the default path and file name or need to specify a full path. When I would want to add the space Id to the file name, I would get it beforehand.

Possible Solution

see expected behavior

Context

I'm trying to build a migration script for ci/cd-pipeline. We have multiple spaces and environments. As there is no information written about those inside the migration file, I would like to extract that from the file name.

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

No branches or pull requests

1 participant