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

Find a home for these notes about yq rule injection #199

Open
turbomam opened this issue May 22, 2024 · 0 comments
Open

Find a home for these notes about yq rule injection #199

turbomam opened this issue May 22, 2024 · 0 comments
Assignees
Labels

Comments

@turbomam
Copy link
Member

	# # having trouble selectively injecting rules based on title pattern
#	yq eval-all \
#		'select(fileIndex==1).classes.JgiMtInterface.rules = (select(fileIndex==0).classes.Biosample.rules.[] | select(.title == "rna*")) | select(fileIndex==1)' \
#		local/nmdc.yaml src/nmdc_submission_schema/schema/nmdc_submission_schema.yaml | cat > ruleswap.yaml
	# # so just inject all rules...
	# # using | cat > because yq fails to write to STDOUT (permissions error?!)

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

No branches or pull requests

1 participant