mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
chore: Add conf to example spells
This commit is contained in:
parent
6910e97b15
commit
dea29295c7
4 changed files with 18 additions and 0 deletions
|
|
@ -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>"
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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>"
|
||||
|
|
|
|||
Loading…
Reference in a new issue