chore: Add conf to example spells

This commit is contained in:
1ambda 2017-02-06 16:37:48 +09:00
parent 6910e97b15
commit dea29295c7
4 changed files with 18 additions and 0 deletions

View file

@ -17,10 +17,18 @@
{
"type" : "SPELL",
"name" : "echo-spell",
"version": "local",
"description" : "Return just what receive (example)",
"artifact" : "./zeppelin-examples/zeppelin-example-spell-echo",
"license" : "Apache-2.0",
"icon" : "<i class='fa fa-repeat'></i>",
"config": {
"repeat": {
"type": "number",
"description": "How many times to repeat",
"defaultValue": 1
}
},
"spell": {
"magic": "%echo",
"usage": "%echo <TEXT>"

View file

@ -17,6 +17,7 @@
{
"type" : "SPELL",
"name" : "flowchart-spell",
"version": "local",
"description" : "Draw flowchart using http://flowchart.js.org (example)",
"artifact" : "./zeppelin-examples/zeppelin-example-spell-flowchart",
"license" : "Apache-2.0",

View file

@ -17,6 +17,7 @@
{
"type" : "SPELL",
"name" : "markdown-spell",
"version": "local",
"description" : "Parse markdown using https://github.com/evilstreak/markdown-js (example)",
"artifact" : "./zeppelin-examples/zeppelin-example-spell-markdown",
"license" : "Apache-2.0",

View file

@ -17,10 +17,18 @@
{
"type" : "SPELL",
"name" : "translator-spell",
"version": "local",
"description" : "Translate langauges using Google API (examaple)",
"artifact" : "./zeppelin-examples/zeppelin-example-spell-translator",
"license" : "Apache-2.0",
"icon" : "<i class='fa fa-globe '></i>",
"config": {
"access-token": {
"type": "string",
"description": "access token for Google Translation API",
"defaultValue": "EXAMPLE-TOKEN"
}
},
"spell": {
"magic": "%translator",
"usage": "%translator <source>-<target> <access-key> <TEXT>"