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