feat: re-add apps and config cli aliases

This better follows Heroku's output and is more useful to users. The subcommands will be treated as the primary, documented versions, while the aliases are there for convenience.

Closes #5362
This commit is contained in:
Jose Diaz-Gonzalez
2023-07-02 05:48:09 -04:00
parent 1d0d050596
commit 798a413096
4 changed files with 22 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ teardown() {
}
@test "(apps) apps:help" {
run /bin/bash -c "dokku apps"
run /bin/bash -c "dokku apps --help"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage apps"

View File

@@ -19,10 +19,17 @@ teardown() {
}
@test "(config) config:help" {
run /bin/bash -c "dokku config --help"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage global and app-specific config vars"
help_output="$output"
run /bin/bash -c "dokku config:help"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage global and app-specific config vars"
assert_output "$help_output"
}
@test "(config) config:set --global" {