From 71f8a4e5aca2f05f00b8a7ee4ec9e98ae38316b5 Mon Sep 17 00:00:00 2001 From: Yunobot Date: Wed, 2 Dec 2020 21:10:50 +0000 Subject: [PATCH] Add number parser --- packaging_apps_arguments_format.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/packaging_apps_arguments_format.md b/packaging_apps_arguments_format.md index 4da68967..77879e15 100644 --- a/packaging_apps_arguments_format.md +++ b/packaging_apps_arguments_format.md @@ -250,6 +250,34 @@ And in json: }, ``` +### Number + +Like string except the user needs to enter a number + +Example in toml: + +```toml +[maybe.some.stuff.before.the_name] +type = "number" +ask.en = "the question in english" +ask.fr = "the question in french" +default = 0 +``` + +And in json: + +```javascript +{ + "name": "the_name", + "type": "number", + "ask": { + "en": "the question in english", + "fr": "the question in french" + }, + "default": 0 +}, +``` + ### App This type will ask the user to select an application in the list of installed