From b383c31f2982f00760784a71c053b05b35cc66c8 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 21 Oct 2024 10:58:24 +0200 Subject: [PATCH] Add contribute information to the About app and show it on the exit --- .../{1-bugreport.yml => bug-reports.yml} | 0 .../{2-feature.yml => feature-reqests.yml} | 0 .../ISSUE_TEMPLATE/{3-task.yml => tasks.yml} | 0 bin/armbian-config | 5 ++++ lib/armbian-configng/config.ng.jobs.json | 12 ++++---- lib/armbian-configng/config.ng.system.sh | 30 +++++++++++++++++++ tools/json/config.help.json | 10 +++---- 7 files changed, 46 insertions(+), 11 deletions(-) rename .github/ISSUE_TEMPLATE/{1-bugreport.yml => bug-reports.yml} (100%) rename .github/ISSUE_TEMPLATE/{2-feature.yml => feature-reqests.yml} (100%) rename .github/ISSUE_TEMPLATE/{3-task.yml => tasks.yml} (100%) diff --git a/.github/ISSUE_TEMPLATE/1-bugreport.yml b/.github/ISSUE_TEMPLATE/bug-reports.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/1-bugreport.yml rename to .github/ISSUE_TEMPLATE/bug-reports.yml diff --git a/.github/ISSUE_TEMPLATE/2-feature.yml b/.github/ISSUE_TEMPLATE/feature-reqests.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/2-feature.yml rename to .github/ISSUE_TEMPLATE/feature-reqests.yml diff --git a/.github/ISSUE_TEMPLATE/3-task.yml b/.github/ISSUE_TEMPLATE/tasks.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/3-task.yml rename to .github/ISSUE_TEMPLATE/tasks.yml diff --git a/bin/armbian-config b/bin/armbian-config index 8828d05b..b7ddbf96 100755 --- a/bin/armbian-config +++ b/bin/armbian-config @@ -161,4 +161,9 @@ generate_top_menu "$json_data" # # Exit the script with a success status code + +# +# Show about this tool on exit +about_armbian_configng + exit 0 diff --git a/lib/armbian-configng/config.ng.jobs.json b/lib/armbian-configng/config.ng.jobs.json index 8a264c52..7554da54 100644 --- a/lib/armbian-configng/config.ng.jobs.json +++ b/lib/armbian-configng/config.ng.jobs.json @@ -1160,21 +1160,21 @@ }, { "id": "Help", - "description": "About this app", + "description": "About this tool", "sub": [ { - "id": "H00", - "description": "About This system. (WIP)", + "id": "H02", + "description": "Contribute", "command": [ - "show_message <<< \"This app is to help execute procedures to configure your system\n\nSome options may not work on manually modified systems\"" + "show_message <<< $(about_armbian_configng)" ], - "status": "Preview", + "status": "Stable", "doc_link": "", "src_reference": "", "author": "" }, { - "id": "H02", + "id": "H03", "description": "List of Config function(WIP)", "command": [ "show_message <<< see_use" diff --git a/lib/armbian-configng/config.ng.system.sh b/lib/armbian-configng/config.ng.system.sh index ecb8e003..246e1d68 100644 --- a/lib/armbian-configng/config.ng.system.sh +++ b/lib/armbian-configng/config.ng.system.sh @@ -515,3 +515,33 @@ restore_netplan_config() { fi } + + +module_options+=( +["about_armbian_configng,author"]="Igor Pecovnik" +["about_armbian_configng,ref_link"]="" +["about_armbian_configng,feature"]="Show info" +["about_armbian_configng,desc"]="" +["about_armbian_configng,example"]="" +["about_armbian_configng,status"]="Active" +) +# +# @description Show general information about this tool +# +about_armbian_configng() { + + echo "Armbian Config: The Next Generation" + echo "" + echo "How to make this tool even better?" + echo "" + echo "- propose new features or software titles" + echo " https://github.com/armbian/configng/issues/new?template=feature-reqests.yml" + echo "" + echo "- report bugs" + echo " https://github.com/armbian/configng/issues/new?template=bug-reports.yml" + echo "" + echo "- support developers with a small donation" + echo " https://github.com/sponsors/armbian" + echo "" + +} diff --git a/tools/json/config.help.json b/tools/json/config.help.json index a48ac95d..9bbe1897 100644 --- a/tools/json/config.help.json +++ b/tools/json/config.help.json @@ -5,18 +5,18 @@ "description": "About this app", "sub": [ { - "id": "H00", - "description": "About This system. (WIP)", + "id": "H02", + "description": "Contribute", "command": [ - "show_message <<< \"This app is to help execute procedures to configure your system\n\nSome options may not work on manually modified systems\"" + "show_message <<< $(about_armbian_configng)" ], - "status": "Preview", + "status": "Stable", "doc_link": "", "src_reference": "", "author": "" }, { - "id": "H02", + "id": "H03", "description": "List of Config function(WIP)", "command": [ "show_message <<< see_use"