| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function vcs_getOptions { |
| |
| |
| local ARGSS="h,q" |
| |
| |
| local ARGSL="help,quiet,synchronize,update,commit,is-versioned,status,mkdir,copy,delete" |
| |
| |
| cli_parseArguments |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| while true; do |
| |
| case "$1" in |
| |
| -h | --help ) |
| cli_runFnEnvironment help --read --format="texinfo" "tcar-fs::scripts:bash-functions-vcs" |
| shift 1 |
| exit |
| ;; |
| |
| -q | --quiet ) |
| FLAG_QUIET="true" |
| shift 1 |
| ;; |
| |
| --synchronize ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_syncRepoChanges" |
| shift 1 |
| ;; |
| |
| --commit ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_commitRepoChanges" |
| shift 1 |
| ;; |
| |
| --update ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_updateRepoChanges" |
| shift 1 |
| ;; |
| |
| --is-versioned ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_isVersioned" |
| shift 1 |
| ;; |
| |
| --status ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_getRepoStatus" |
| shift 1 |
| ;; |
| |
| --copy ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_copyRepoFile" |
| shift 1 |
| ;; |
| |
| --mkdir ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_mkRepoDirectory" |
| shift 1 |
| ;; |
| |
| --delete ) |
| ACTIONNAMS="${ACTIONNAMS} ${PACKAGE}_deleteRepoFile" |
| shift 1 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| cli_parseArgumentsReDef "$@" |
| |
| } |