From 71f8a4e5aca2f05f00b8a7ee4ec9e98ae38316b5 Mon Sep 17 00:00:00 2001 From: Yunobot Date: Wed, 2 Dec 2020 21:10:50 +0000 Subject: [PATCH 1/2] 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 From 3f8ac7c06ed6a932d9379c8077921dcb1bdfae51 Mon Sep 17 00:00:00 2001 From: Plumf <45500657+Plumf@users.noreply.github.com> Date: Thu, 3 Dec 2020 12:31:30 +0100 Subject: [PATCH 2/2] Update packaging_apps_arguments_format.md --- packaging_apps_arguments_format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging_apps_arguments_format.md b/packaging_apps_arguments_format.md index 77879e15..ddd3e436 100644 --- a/packaging_apps_arguments_format.md +++ b/packaging_apps_arguments_format.md @@ -87,7 +87,7 @@ Example in toml: [maybe.some.stuff.before.the_name] type = "string" ask.en = "the question in english" -ask.fr = "the question in french" +ask.fr = "la question en français" example = "an example value" # optional choices = ["fr", "en"] default = "en" # optional