Add support for flags on the service:info command

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-28 05:34:55 -04:00
parent c418c9f69c
commit 470840739d
5 changed files with 85 additions and 13 deletions

View File

@@ -48,18 +48,26 @@ dokku postgres:create lolipop
# official postgres image
export POSTGRES_IMAGE="postgres"
export POSTGRES_IMAGE_VERSION="9.5.4"
dokku postgres:create lolipop
# you can also specify custom environment
# variables to start the postgres service
# in semi-colon separated forma
export POSTGRES_CUSTOM_ENV="USER=alpha;HOST=beta"
# create a postgres service
dokku postgres:create lolipop
# get connection information as follows
dokku postgres:info lolipop
# you can also retrieve a specific piece of service info via flags
dokku postgres:info lolipop --config-dir
dokku postgres:info lolipop --data-dir
dokku postgres:info lolipop --dsn
dokku postgres:info lolipop --exposed-ports
dokku postgres:info lolipop --links
dokku postgres:info lolipop --status
dokku postgres:info lolipop --version
# a postgres service can be linked to a
# container this will use native docker
# links via the docker-options plugin