Commit c881e41b authored by Carlo Landmeter's avatar Carlo Landmeter

admin: add cmd to list all volumes

parent 716a4496
......@@ -7,12 +7,17 @@ manage_config() {
-v dabuild-config:/mnt/abuild alpine sh
}
list_volumes() {
docker volume ls --quiet --filter name="^dabuild"
}
usage() {
cat <<- EOF
dabuild: version (unknown)
Available commands:
config: access abuild configuration
volumes: list created dabuild volumes
help: this help screen
EOF
}
......@@ -20,6 +25,7 @@ usage() {
case $cmd in
config) manage_config;;
volumes) list_volumes;;
help) usage;;
*) usage; exit 1;;
esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment