Built and documented more logic functions, started an exit codes help section adding exit codes as I go. Ceated a tester script for testing logic functions from functions.lib.sh without the need to run the entire code base.

This commit is contained in:
2026-04-02 10:21:29 +02:00
parent 1c648f2739
commit 38562c1d55
7 changed files with 758 additions and 36 deletions

View File

@@ -1,5 +1,7 @@
## DebMirror Manager Variables Declarations Library
declare etcdirectory="/etc/debmirrorman"
declare -A commands=(
[add]="doAddRepo"
[dryrun]="doTestRepo"
@@ -36,6 +38,7 @@ declare -A helpercommands=(
[add]="doHelperAdd"
[dryrun]="doHelperTestRepo"
[edit]="doHelperEditRepo"
[exitcodes]="doHelperExitCodes"
[list]="doHelperListRepos"
[remove]="doHelperRemoveRepo"
[usage]="doHelperRepoUsage"
@@ -44,3 +47,7 @@ declare -A helpercommands=(
[silentrun]="doHelperQuietSyncRepos"
[update]="doHelperUpdater"
)
declare localfqdn
declare -a localrepos
declare -A prettynames