containerctl: Add usage message
Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
94fcd6828f
commit
b3fe3b8a10
1 changed files with 7 additions and 0 deletions
|
@ -158,10 +158,17 @@ generate_all()
|
|||
done
|
||||
}
|
||||
|
||||
usage()
|
||||
{
|
||||
printf '%b list-containers|list-configs|generate CONFIG-FILE|generate-all|CONTAINER-NAME ACTION\n' "${0}"
|
||||
}
|
||||
|
||||
case "${1}" in
|
||||
"list-containers") list_containers ;;
|
||||
"list-configs") list_configs ;;
|
||||
"generate-all") generate_all ;;
|
||||
"generate") shift; generate_container "${@}" ;;
|
||||
"help") usage "${0}" ;;
|
||||
"usage") usage "${0}" ;;
|
||||
*) exec_script "${@}" ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Reference in a new issue