maxlath / wikibase-cli

read and edit a Wikibase instance from the command line
MIT License
226 stars 24 forks source link

Support async item templates #83

Closed nichtich closed 4 years ago

nichtich commented 4 years ago

Calling

wd ci ./template.js --dry

with template.js

module.exports = async () { return { claims: { P31: "Q5" } }

emits

{}

instead of

{ "claims": { "P31": "Q5" } }

This is needed to write templates that look up context information in Wikidata before emitting what data to modify.