-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #494 from zdharma-continuum/57-allow-deleting-mult…
…iple-plugins-in-one-command fix: delete multiple plugins at once - `delete` subcommand can now take multiple arguments - improved logic for `--all`, `--clean` flags - improved log output - now cleans up broken symlinks
- Loading branch information
Showing
9 changed files
with
252 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env zunit | ||
# | ||
# zdharma-continuum/zinit/tests/commands.zunit | ||
# Copyright (c) 2016-2021 Sebastian Gniazdowski | ||
# Copyright (c) 2021-2023 zdharma-continuum | ||
# Homepage: https://github.com/zdharma-continuum/zinit | ||
# License: MIT License | ||
# | ||
|
||
@setup { | ||
ZBIN="${ZPFX}/bin" | ||
} | ||
@test 'delete --help' { | ||
run zinit delete --help | ||
assert $output contains 'zinit delete [options] [plugins...]' | ||
assert $state equals 0 | ||
} | ||
@test 'delete --all' { | ||
run zinit as'completion' is-snippet for @'https://github.com/docker/cli/blob/master/contrib/completion/zsh/_docker' | ||
assert $state equals 0 | ||
} | ||
@test 'delete a snippet' { | ||
run zinit id-as'git.zsh' is-snippet for @'OMZL::git.zsh' | ||
run zinit delete --yes 'git.zsh' | ||
assert $state equals 0 | ||
} | ||
@test 'delete a plugin' { | ||
run zinit from'gh-r' as'program' id-as mv'shfmt* -> shfmt' for @'mvdan/sh' | ||
run zinit delete --yes sh | ||
assert $state equals 0 | ||
} | ||
@test 'delete a program' { | ||
run zinit as'program' cp'wd.sh->wd' mv'_wd.sh->_wd' pick'wd' for @'mfaerevaag/wd' | ||
run zinit delete --yes mfaerevaag/wd | ||
assert $state equals 0 | ||
} | ||
|
||
# vim:ft=zsh:sw=2:sts=2:et:foldmarker={,}:foldmethod=marker |
Oops, something went wrong.