26 lines
663 B
Bash
Executable File
26 lines
663 B
Bash
Executable File
#!/bin/bash
|
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
source "$(dirname -- "$0")/../load.sh" || exit 1
|
|
require: donk.help
|
|
|
|
# par défaut, c'est l'action build
|
|
case "$1" in
|
|
-h*|--help|--help=*|--help++) ;;
|
|
-*) set -- build "$@";;
|
|
esac
|
|
|
|
args=(
|
|
"construire des images docker"
|
|
"ACTION [options]
|
|
$(_donk_show_actions)"
|
|
+
|
|
-h::section,--help '$_donk_show_help' "Afficher l'aide de la section spécifiée.
|
|
Les sections valides sont: ${DONK_HELP_SECTIONS[*]%%:*}"
|
|
--help++ '$_donk_show_help' "++Afficher l'aide"
|
|
)
|
|
parse_args "$@"; set -- "${args[@]}"
|
|
|
|
action="$1"; shift
|
|
require: "donk.$action" || die
|
|
"donk_$action" "$@"
|