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

Fix CLI tags, allow comma delisted tags, add test #1695

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Fix CLI tags, allow comma delisted tags, add test #1695

merged 2 commits into from
Mar 26, 2024

Conversation

Ekrekr
Copy link
Contributor

@Ekrekr Ekrekr commented Mar 26, 2024

Fixes #1200

At some point the tagsOption got removed from the run command 👀

@Ekrekr Ekrekr requested a review from BenBirt March 26, 2024 14:26
cli/index.ts Outdated
Comment on lines 91 to 97
const tags: string[] = [];
rawTags.forEach(rawTag =>
rawTag?.split(",").forEach(tag => {
tags.push(tag);
})
);
return tags;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return rawTags.map(tags => tags.split(",")).flat();

@Ekrekr Ekrekr merged commit 464d2d7 into main Mar 26, 2024
4 checks passed
@Ekrekr Ekrekr deleted the fix-cli-tags branch March 26, 2024 16:36
moker-spaghetti pushed a commit to moker-spaghetti/dataform that referenced this pull request May 26, 2024
Fix CLI tags, allow comma delisted tags, add test
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.

CLI command (dataform run) --tags flag does not accept a list of tags
2 participants