From 3d74a6110f394cccb1d240317fe8295723d2384a Mon Sep 17 00:00:00 2001 From: Dmytro Serdiuk Date: Thu, 25 Jul 2019 23:03:57 +0300 Subject: [PATCH] Actualize list of available commands `commands` command is available in the list of commands as well as is checked during testing. `save` is removed from the docs (a debt). --- docs/commands.md | 1 - libexec/git-elegant-commands | 1 + tests/git-elegant-commands.bats | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/commands.md b/docs/commands.md index cfaff86..ccb1bd9 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -10,7 +10,6 @@ - `add` - `clear-local` - `configure-repository` -- `save` # `clone-repository` Clones a repository into a new directory and runs its configuration. diff --git a/libexec/git-elegant-commands b/libexec/git-elegant-commands index d6f14c7..386fec7 100644 --- a/libexec/git-elegant-commands +++ b/libexec/git-elegant-commands @@ -12,4 +12,5 @@ default() { echo "add" echo "clear-local" echo "configure-repository" + echo "commands" } diff --git a/tests/git-elegant-commands.bats b/tests/git-elegant-commands.bats index 61aad0a..989d2d9 100644 --- a/tests/git-elegant-commands.bats +++ b/tests/git-elegant-commands.bats @@ -19,12 +19,13 @@ teardown() { "add" "clear-local" "configure-repository" + "commands" ) check git-elegant commands for command in {0..12}; do [ "${lines[$command]}" = "${COMMANDS[$command]}" ] done - [ ${#lines[@]} -eq 10 ] + [ ${#lines[@]} -eq 11 ] } @test "'commands': default exit code is 0" {