Add quickstart commands

This commit is contained in:
lowlighter
2021-02-04 22:46:47 +01:00
parent 96d59e94c1
commit 5eaf603357
10 changed files with 154 additions and 3 deletions

15
.github/quickstart/plugin/index.mjs vendored Normal file
View File

@@ -0,0 +1,15 @@
//Setup
export default async function ({login, q, imports, data, computed, rest, graphql, queries, account}, {enabled = false} = {}) {
//Plugin execution
try {
//Check if plugin is enabled and requirements are met
if ((!enabled)||(!q.<%= name %>))
return null
//Results
return {}
}
//Handle errors
catch (error) {
throw {error:{message:"An error occured", instance:error}}
}
}