Built and tested basic structure of the source of debmirrorman, added build.sh for building the source into a single executable file from the individual .sh and .lib.sh files.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
## DebMirror Manager Variables Declarations Library
|
||||
|
||||
declare -A commands=(
|
||||
[add]="doAddRepo"
|
||||
[dryrun]="doTestRepo"
|
||||
[edit]="doEditRepo"
|
||||
[help]="doHelper"
|
||||
[license]="doLicense"
|
||||
[list]="doListRepos"
|
||||
[remove]="doRemoveRepo"
|
||||
[usage]="doRepoUsage"
|
||||
[run]="doSyncRepos"
|
||||
[show]="doShowRepo"
|
||||
[silentrun]="doQuietSyncRepos"
|
||||
[update]="doUpdater"
|
||||
[version]="doVersion"
|
||||
)
|
||||
|
||||
declare -A commandsneedreponame=(
|
||||
[add]="none"
|
||||
[dryrun]="required"
|
||||
[edit]="required"
|
||||
[help]="help"
|
||||
[license]="none"
|
||||
[list]="none"
|
||||
[remove]="required"
|
||||
[usage]="optional"
|
||||
[run]="optional"
|
||||
[show]="required"
|
||||
[silentrun]="optional"
|
||||
[update]="none"
|
||||
[version]="none"
|
||||
)
|
||||
|
||||
declare -A helpercommands=(
|
||||
[add]="doHelperAdd"
|
||||
[dryrun]="doHelperTestRepo"
|
||||
[edit]="doHelperEditRepo"
|
||||
[list]="doHelperListRepos"
|
||||
[remove]="doHelperRemoveRepo"
|
||||
[usage]="doHelperRepoUsage"
|
||||
[run]="doHelperSyncRepos"
|
||||
[show]="doHelperShowRepo"
|
||||
[silentrun]="doHelperQuietSyncRepos"
|
||||
[update]="doHelperUpdater"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user