From 98012081bcc5ec89d9c21bb984a81ef4bbbb58a9 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Wed, 5 Apr 2023 22:18:55 +0200 Subject: [PATCH 1/4] Mark example files as toml --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..54e13de --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +tests.toml.example diff=toml +config_panel.toml.example diff=toml \ No newline at end of file From 360c2ae73570a929785e0c11fd4009d32546cf00 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Wed, 5 Apr 2023 22:23:46 +0200 Subject: [PATCH 2/4] Use different tag. --- .gitattributes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 54e13de..6f9a98b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ -tests.toml.example diff=toml -config_panel.toml.example diff=toml \ No newline at end of file +tests.toml.example linguist-language=toml +config_panel.toml.example linguist-language=toml From dd80e1ee801f2fed61206e87b865b6851ef04174 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Wed, 5 Apr 2023 22:50:34 +0200 Subject: [PATCH 4/4] Explain yes/no --- config_panel.toml.example | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config_panel.toml.example b/config_panel.toml.example index 3b89740..ed147af 100644 --- a/config_panel.toml.example +++ b/config_panel.toml.example @@ -222,6 +222,13 @@ services = ["__APP__"] ## (optional) set to true in order to redact the value in operation logs # redact = false + ## (optional) for boolean questions you can specify replacement values + ## bound to true and false, in case property is bound to config file + # useful if bound property in config file expects something else than integer 1 + yes = "Enable" + # useful if bound property in config file expects something else than integer 0 + no = "Disable" + ## (optional) A validation pattern ## --------------------------------------------------------------------- ## IMPORTANT: your pattern should be between simple quote, not double.