Skip to content

Commit

Permalink
Add contribute information to the About app and show it on the exit
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Oct 21, 2024
1 parent e26874c commit b383c31
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions bin/armbian-config
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions lib/armbian-configng/config.ng.jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
30 changes: 30 additions & 0 deletions lib/armbian-configng/config.ng.system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

}
10 changes: 5 additions & 5 deletions tools/json/config.help.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b383c31

Please sign in to comment.