version = "0.1" name = "Configuration panel" [main] name = "Main section" [main.components] name = "Components" [main.components.boolean] ask = "Put a boolean" type = "boolean" labels.true = "on" labels.false = "off" default = true optional = true [main.components.number] ask = "Put a number" type = "number" min = 1 max = 100 optional = true [main.components.range] ask = "Put a range" type = "range" min = 1 max = 100 optional = true [main.components.str] ask = "Put a string with yunohost word" type = "string" pattern = "yunohost" optional = true [main.components.text] ask = "Put a text" type = "text" optional = true [main.components.password] ask = "Put a password" type = "password" optional = true [main.components.custom_path] ask = "Put a path" type = "path" optional = true [main.components.email] ask = "Put a email" type = "email" optional = true [main.components.url] ask = "Put a url" type = "url" optional = true [main.components.date] ask = "Put a date" type = "date" optional = true [main.components.time] ask = "Put a time" type = "time" optional = true [main.components.color] ask = "Put a color" type = "color" optional = true [main.components.select] ask = "Choose an option" type = "select" choices = ["option1", "option2", "option3"] optional = true [main.components.custom_domain] ask = "Put a domain" type = "domain" optional = true [main.components.user] ask = "Put a user" type = "user" optional = true [main.components.tags] ask = "Put some tags" type = "tags" optional = true [main.components.file] ask = "Put a file" type = "file" accept = ".cube" optional = true [main.messages] name = "Read only components" [main.messages.success] ask = "This is a success message" type = "success" [main.messages.info] ask = "This is an info message" type = "info" [main.messages.warning] ask = "This is an warning message" type = "warning" [main.messages.error] ask = "This is an simple message" type = "error" [main.messages.display_text] ask = "This is a simple text" type = "display_text" [main.messages.markdown] ask = "This is a **markdown** text" type = "markdown" [main.generic] name = "Generic options" [main.generic.default] ask = "This is a question with a default value" type = "string" default = "Camille" optional = true [main.generic.example] ask = "This is a question with an example value" type = "string" example = "Camille" optional = true [main.generic.required] ask = "This is a required value" type = "string" [main.generic.help] ask = "Here we add some help" type = "string" help = "You can feel this question with your keyboard (yes i know it's very useful)" optional = true [main.generic.helpLink] ask = "Here we add an help link" type = "string" helpLink.href = "https://yunohost.org/doc" helpLink.text = "Yunohost Doc" optional = true [main.generic.visibleIf] ask = "Display if helpLink question is filled" type = "string" visibleIf = "helpLink" optional = true [source] name = "Source section" [source.settings] name = "App settings" [source.settings.arg1] ask = "Save app settings arg1" type = "string" optional = true [source.yml] name = "YAML" [source.yml.arg2] ask = "Save arg2 in YAML" type = "string" source = "__FINALPATH__/test.yml" optional = true [source.json] name = "JSON" [source.json.arg3] ask = "Save arg3 in JSON" type = "string" source = "__FINALPATH__/test.json" optional = true [source.ini] name = "INI" [source.ini.arg4] ask = "Save arg4 in INI" type = "string" source = "__FINALPATH__/test.ini" optional = true [source.php] name = "PHP" [source.php.arg5] ask = "Save arg5 in PHP file" type = "string" source = "__FINALPATH__/test.php" optional = true [source.python] name = "Python" [source.python.arg6] ask = "Save arg6 in python file" type = "string" source = "__FINALPATH__/test.py" optional = true [source.file] name = "File" [source.file.arg7] ask = "Save a cube file" type = "file" accept = ".cube" source = "__FINALPATH__/test.cube" optional = true [source.function] name = "Save with a bash function" [source.function.arg8] ask = "Custom validate and save arg8 password" type = "password" optional = true