From 341c4d91f0ecdaedd8e6cc304be060a1fada240e Mon Sep 17 00:00:00 2001 From: Nikopol Date: Thu, 18 Jan 2024 19:04:02 +0400 Subject: [PATCH] Revert and update README --- .gitignore | 1 + README.md | 6 +++++- jwmappbuilder.v | 10 +--------- 3 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..377ed16 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +jwmappbuilder \ No newline at end of file diff --git a/README.md b/README.md index ddc60d6..f7b560a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # KeizaDesktop - +This repository contains everything related to Keiza WM. +## JAB +- Install V. +- build +`v -prod jwmappbuilder.v` \ No newline at end of file diff --git a/jwmappbuilder.v b/jwmappbuilder.v index 0dbf430..8475ce1 100644 --- a/jwmappbuilder.v +++ b/jwmappbuilder.v @@ -1,14 +1,6 @@ import os -import khalyomede.i18n { Translations } fn main() { - textbundle := Translations{ - default_lang: "en_US", - translations: { - "helptext": { - "en_US": "\nUsage:\n :cmd [-h] [-t] [-i] [-a]\n\nGenerates Applications menu for Joe's Window Manager.\n\nUsage in .jwmrc:\n\n\texec: :cmd \n\nOptions:\n -h, --help\tShow this text.\n -i, --icons\tAlso generate icons.\n -t, --tooltip\tAlso generate tooltips.\n -a, --all\tDo not generate categories: list all applications.\n\nv1.0" - }}} - lang := detectlang() mut args := []bool{len: 3} for mut arg in args { arg = false @@ -19,7 +11,7 @@ fn main() { "-t", "--tooltip" { args[1] = true } "-a", "--all" { args[2] = true } "-h", "--help" { - println(textbundle.get("helptext", { "cmd": os.args[0] })) + println("\nUsage:\n ${os.args[0]} [-h] [-t] [-i] [-a]\n\nGenerates Applications menu for Joe's Window Manager.\n\nUsage in .jwmrc:\n\n\texec: ${os.args[0]} \n\nOptions:\n -h, --help\tShow this text.\n -i, --icons\tAlso generate icons.\n -t, --tooltip\tAlso generate tooltips.\n -a, --all\tDo not generate categories: list all applications.\n\nv1.0") exit(0) } else { if arg == os.args[0] {} else {