microbiomedata / submission-schema

https://microbiomedata.github.io/submission-schema/
MIT License
1 stars 1 forks source link

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

Open turbomam opened 1 month ago

turbomam commented 1 month ago
  # # 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?!)