From bb5676f35312aac04fd7dcad40aa7ad4c7a63638 Mon Sep 17 00:00:00 2001 From: jrwarwick Date: Fri, 4 May 2018 09:04:19 -0700 Subject: [PATCH] Add a settingsmeta.json.example creator heredoc. --- skiller.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/skiller.sh b/skiller.sh index 601b2b455b..899ed51dcd 100755 --- a/skiller.sh +++ b/skiller.sh @@ -135,6 +135,48 @@ def create_skill(): return $class_name() """ > "$skill_dir/__init__.py" +echo """{ + \"name\": \"${capital_desc}\", + \"skillMetadata\": { + \"sections\": [ + { + \"name\": \"Section Friendly Display Name for Home.Mycroft.AI\", + \"fields\": [ + { + \"name\": \"internal_python_variable_name\", + \"type\": \"text\", + \"label\": \"Setting Friendly Display Name\", + \"value\": \"\", + \"placeholder\": \"demo prompt in the input box\" + } + ] + }, + { + \"name\": \"Login --Another Section But This One Has Two Values--\", + \"fields\": [ + { + \"type\": \"label\", + \"label\": \"Just a little bit of extra info for the user to understand following settings\" + }, + { + \"name\": \"username\", + \"type\": \"text\", + \"label\": \"Username\", + \"value\": \"\" + }, + { + \"name\": \"password\", + \"type\": \"password\", + \"label\": \"Password\", + \"value\": \"\" + } + ] + } + ] + } +} +""" > "$skill_dir/settingsmeta.json.example" + echo -e "*.pyc\nsettings.json\n" > $skill_dir/.gitignore for i in "dialog" "vocab"; do mkdir -p "$skill_dir/$i/$lang"; done echo "$skill_desc" > "$skill_dir/vocab/$lang/$keyword.voc"