Skip to content

Commit

Permalink
Remove check command
Browse files Browse the repository at this point in the history
This command is not relevant as we use direct git commands in
`save-work` command.
  • Loading branch information
extsoft committed Jul 25, 2019
1 parent da7152b commit 042a702
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 94 deletions.
4 changes: 0 additions & 4 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- `add`
- `clear-local`
- `configure-repository`
- `check`
- `save`

# `clone-repository`
Expand Down Expand Up @@ -106,8 +105,5 @@ Removes all local branches which don't have remote tracking branches.
# `configure-repository`
Defines some settings for _local_ `git config`.

# `check`
Shows trailing whitespaces of uncommitted changes.

# `commands`
Displays all available commands.
20 changes: 0 additions & 20 deletions libexec/git-elegant-check

This file was deleted.

1 change: 0 additions & 1 deletion libexec/git-elegant-commands
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ default() {
echo "add"
echo "clear-local"
echo "configure-repository"
echo "check"
}
67 changes: 0 additions & 67 deletions tests/git-elegant-check.bats

This file was deleted.

3 changes: 1 addition & 2 deletions tests/git-elegant-commands.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ teardown() {
"add"
"clear-local"
"configure-repository"
"check"
)
check git-elegant commands
for command in {0..12}; do
[ "${lines[$command]}" = "${COMMANDS[$command]}" ]
done
[ ${#lines[@]} -eq 11 ]
[ ${#lines[@]} -eq 10 ]
}

@test "'commands': default exit code is 0" {
Expand Down

0 comments on commit 042a702

Please sign in to comment.