feat: implement version flags

This moves the version command to the dokku binary, and also implements both -v and --version flags on the binary.
This commit is contained in:
Jose Diaz-Gonzalez
2019-03-11 21:47:46 -04:00
parent 2da16265cb
commit 297a26aa20
3 changed files with 38 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bats
load test_helper
setup() {
global_setup
}
teardown() {
global_teardown
}
@test "(version) version, -v, --version" {
run /bin/bash -c "dokku version"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku -v"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku --version"
echo "output: $output"
echo "status: $status"
assert_success
}