removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
59
.antidote/tests/test_cmd_install.md
Normal file
59
.antidote/tests/test_cmd_install.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# antidote installs tests
|
||||
|
||||
## Setup
|
||||
|
||||
```zsh
|
||||
% source ./tests/_setup.zsh
|
||||
% source ./antidote.zsh
|
||||
%
|
||||
```
|
||||
|
||||
## Install Command
|
||||
|
||||
`antidote install` requires a `<bundle>` argument.
|
||||
|
||||
```zsh
|
||||
% antidote install #=> --exit 1
|
||||
antidote: error: required argument 'bundle' not provided, try --help
|
||||
%
|
||||
```
|
||||
|
||||
Trying to install an existing bundle fails.
|
||||
|
||||
```zsh
|
||||
% antidote install foo/bar &>/dev/null #=> --exit 1
|
||||
% antidote install foo/bar 2>&1 | subenv ANTIDOTE_HOME >&2
|
||||
antidote: error: foo/bar already installed: $ANTIDOTE_HOME/foo/bar
|
||||
%
|
||||
```
|
||||
|
||||
Install a bundle
|
||||
|
||||
```zsh
|
||||
% antidote install rupa/z | subenv ZDOTDIR
|
||||
# antidote cloning rupa/z...
|
||||
Adding bundle to '$ZDOTDIR/.zsh_plugins.txt':
|
||||
rupa/z
|
||||
% tail -n 1 $ZDOTDIR/.zsh_plugins.txt
|
||||
rupa/z
|
||||
%
|
||||
```
|
||||
|
||||
Install a complicated bundle
|
||||
|
||||
```zsh
|
||||
% antidote install --path plugins/macos --conditional is-macos ohmyzsh/ohmyzsh | subenv ZDOTDIR
|
||||
# antidote cloning ohmyzsh/ohmyzsh...
|
||||
Adding bundle to '$ZDOTDIR/.zsh_plugins.txt':
|
||||
ohmyzsh/ohmyzsh path:plugins/macos conditional:is-macos
|
||||
% tail -n 1 $ZDOTDIR/.zsh_plugins.txt
|
||||
ohmyzsh/ohmyzsh path:plugins/macos conditional:is-macos
|
||||
%
|
||||
```
|
||||
|
||||
## Teardown
|
||||
|
||||
```zsh
|
||||
% t_teardown
|
||||
%
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue