Blame view

repos/zsh-users/antigen/tests/use.t 739 Bytes
ddbb98497   mj   Squashed 'repos/z...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  Use unknown library.
  
    $ antigen-use unknown
    Usage: antigen-use <library-name>
    Where <library-name> is any one of the following:
     * oh-my-zsh
     * prezto
    [1]
  
  Missing argument.
  
    $ antigen-use
    Usage: antigen-use <library-name>
    Where <library-name> is any one of the following:
     * oh-my-zsh
     * prezto
    [1]
  
  Mock out the library loading functions.
  
    $ -antigen-use-oh-my-zsh () { echo Using oh-my-zsh. }
    $ -antigen-use-prezto () { echo Using prezto. }
  
  Note: We lack tests for these internal functions. I'm not sure how feasible
  testing them is given they most certainly use the network.
  
  Use oh-my-zsh library.
  
    $ antigen-use oh-my-zsh
    Using oh-my-zsh.
  
  Use prezto library.
  
    $ antigen-use prezto
    Using prezto.