You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/modules/software/module_aptwizard.sh
+73-5Lines changed: 73 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,20 @@ module_options+=(
8
8
["_checklist_proftpd,group"]="Internet"
9
9
["_checklist_proftpd,arch"]="x86-64 arm64 armhf"
10
10
)
11
-
# Scaffold for an app that has multiple candidates, such as ProFTPD and modules.
11
+
# Presents an interactive checklist for installing or removing ProFTPD-related packages.
12
+
#
13
+
# Dynamically retrieves all available ProFTPD packages, checks their installation status, and builds a checklist for user selection. Invokes the package selection handler to allow users to install or remove selected packages.
14
+
#
15
+
# Returns:
16
+
#
17
+
# * 0 if packages are found and the checklist is presented.
18
+
# * 1 if no ProFTPD-related packages are found.
19
+
#
20
+
# Example:
21
+
#
22
+
# ```bash
23
+
# _checklist_proftpd
24
+
# ```
12
25
function_checklist_proftpd() {
13
26
local title="proftpd"
14
27
@@ -50,7 +63,21 @@ module_options+=(
50
63
["_checklist_browsers,group"]="Internet"
51
64
["_checklist_browsers,arch"]="x86-64 arm64 armhf"
52
65
)
53
-
# Scaffold for app with specific single or dummy candidates.
66
+
# Presents an interactive checklist for managing installation or removal of common browser packages.
67
+
#
68
+
# Fetches a predefined list of browser packages, retrieves their descriptions and installation status,
69
+
# and builds a checklist for user selection. If no browser packages are found, prints a message and returns an error.
70
+
#
71
+
# Returns:
72
+
#
73
+
# * 0 if the checklist is presented successfully.
74
+
# * 1 if no browser packages are found.
75
+
#
76
+
# Example:
77
+
#
78
+
# ```bash
79
+
# _checklist_browsers
80
+
# ```
54
81
function_checklist_browsers() {
55
82
local title="Browsers"
56
83
@@ -105,7 +132,19 @@ module_options+=(
105
132
["_checklist_editors,group"]="Internet"
106
133
["_checklist_editors,arch"]="x86-64 arm64 armhf"
107
134
)
108
-
# Scaffold for app with specific single or dummy candidates.
135
+
# Presents an interactive checklist for installing or removing editor packages such as nano, code, codium, and notepadqq.
136
+
#
137
+
# Fetches a predefined list of editor package names, retrieves their descriptions and installation status, and builds a checklist for user selection. If no matching packages are found, prints a message and returns an error.
138
+
#
139
+
# Returns:
140
+
#
141
+
# * 0 if at least one package is found and the checklist is displayed.
142
+
# * 1 if no editor packages are found.
143
+
#
144
+
# Example:
145
+
#
146
+
# _checklist_editors
147
+
# # Displays a checklist of available editor packages for installation or removal.
109
148
function_checklist_editors() {
110
149
local title="Editors"
111
150
local self="${module_options["_checklist_editors,feature"]}"
@@ -154,7 +193,20 @@ module_options+=(
154
193
["_checklist_imaging,group"]="Internet"
155
194
["_checklist_imaging,arch"]="x86-64 arm64 armhf"
156
195
)
157
-
# Scaffold for app with specific single or dummy candidates.
196
+
# Presents an interactive checklist for installing or removing imaging editor packages (e.g., Inkscape, GIMP).
197
+
#
198
+
# Fetches a predefined list of imaging editor package names from module metadata, retrieves their descriptions and installation status, and builds a checklist for user selection. If no relevant packages are found, prints a message and returns an error.
199
+
#
200
+
# Returns:
201
+
#
202
+
# * 0 if at least one package is found and the checklist is presented.
203
+
# * 1 if no imaging editor packages are found.
204
+
#
205
+
# Example:
206
+
#
207
+
# ```bash
208
+
# _checklist_imaging
209
+
# ```
158
210
function_checklist_imaging() {
159
211
local title="Imaging"
160
212
local self="${module_options["_checklist_imaging,feature"]}"
@@ -205,7 +257,23 @@ module_options+=(
205
257
["module_aptwizard,port"]=""
206
258
["module_aptwizard,arch"]="x86-64 arm64 armhf"
207
259
)
208
-
# Scafold for software module tites
260
+
# Dispatches aptwizard module commands to manage software packages by category.
261
+
#
262
+
# Acts as the main entry point for the aptwizard module, routing user commands to interactive checklists for managing editors, browsers, ProFTPD, or imaging packages. Also provides usage information and available commands.
263
+
#
264
+
# Arguments:
265
+
#
266
+
# * The command to execute (e.g., help, Editors, Browsers, Proftpd, Imaging).
267
+
#
268
+
# Outputs:
269
+
#
270
+
# * Prints usage information, available commands, or error messages to STDOUT.
271
+
#
272
+
# Example:
273
+
#
274
+
# module_aptwizard help
275
+
# module_aptwizard Editors
276
+
# module_aptwizard Browsers
209
277
functionmodule_aptwizard() {
210
278
local title="Packages"
211
279
local self="${module_options["module_aptwizard,feature"]}"
0 commit comments