From d73c07de6854285f3f227b482b6f60e287b86db2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 20 Feb 2017 17:24:09 -0700 Subject: [PATCH] cleanup: move from apps to apps:list subcommand for tests and docs --- docs/deployment/application-management.md | 11 +++++++---- tests/unit/10_apps.bats | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/deployment/application-management.md b/docs/deployment/application-management.md index 679246815..27d220af8 100644 --- a/docs/deployment/application-management.md +++ b/docs/deployment/application-management.md @@ -3,10 +3,10 @@ > New as of 0.3.1 ``` -apps # List your apps apps:clone # Clones an app apps:create # Create a new app apps:destroy # Permanently destroy an app +apps:list # List your apps apps:rename # Rename an app apps:report [] [] # Display report about an app ``` @@ -15,10 +15,12 @@ apps:report [] [] # Display report about an app ### Listing Applications -You can easily list all available applications using the `apps` command: +> New as of 0.8.1. Use the `apps` command for older versions. + +You can easily list all available applications using the `apps:list` command: ```shell -dokku apps +dokku apps:list ``` ``` @@ -30,7 +32,7 @@ python-app Note that you can easily hide extra output from Dokku commands by using the `--quiet` flag, which makes it easier to parse on the command-line. ```shell -dokku --quiet apps +dokku --quiet apps:list ``` ``` @@ -179,6 +181,7 @@ dokku apps:report node-js-sample ``` You can pass flags which will output only the value of the specific information you want. For example: + ```shell dokku apps:report node-js-sample --git-sha ``` diff --git a/tests/unit/10_apps.bats b/tests/unit/10_apps.bats index 17ed29be3..797304716 100644 --- a/tests/unit/10_apps.bats +++ b/tests/unit/10_apps.bats @@ -15,7 +15,7 @@ teardown () { echo "output: "$output echo "status: "$status assert_success - run bash -c "dokku apps | grep $TEST_APP" + run bash -c "dokku apps:list | grep $TEST_APP" echo "output: "$output echo "status: "$status assert_output $TEST_APP @@ -36,7 +36,7 @@ teardown () { echo "output: "$output echo "status: "$status assert_success - run bash -c "dokku apps | grep $TEST_APP" + run bash -c "dokku apps:list | grep $TEST_APP" echo "output: "$output echo "status: "$status assert_output $TEST_APP @@ -64,7 +64,7 @@ teardown () { echo "output: "$output echo "status: "$status assert_success - run bash -c "dokku apps | grep $TEST_APP" + run bash -c "dokku apps:list | grep $TEST_APP" echo "output: "$output echo "status: "$status assert_output "" @@ -97,7 +97,7 @@ teardown () { echo "output: "$output echo "status: "$status assert_success - run bash -c "dokku apps | grep $TEST_APP" + run bash -c "dokku apps:list | grep $TEST_APP" echo "output: "$output echo "status: "$status assert_success