Skip to content

Commit

Permalink
Actualize list of available commands
Browse files Browse the repository at this point in the history
`commands` command is available in the list of commands as well as
is checked during testing.

`save` is removed from the docs (a debt).
  • Loading branch information
extsoft committed Jul 25, 2019
1 parent 042a702 commit 3d74a61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- `add`
- `clear-local`
- `configure-repository`
- `save`

# `clone-repository`
Clones a repository into a new directory and runs its configuration.
Expand Down
1 change: 1 addition & 0 deletions libexec/git-elegant-commands
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ default() {
echo "add"
echo "clear-local"
echo "configure-repository"
echo "commands"
}
3 changes: 2 additions & 1 deletion tests/git-elegant-commands.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 3d74a61

Please sign in to comment.