$> stack setup
$> stack install
This will install Mock into ~/.local/bin
, which should be added to $PATH
.
There is also an AUR package available.
mock [STYLE] [TEXT]
You can get a list of possible mock styles with mock
.
If no text is given, input is read from stdin
.
$> mock random This is a great program.
ThIs Is A greaT PROgrAM.
$> mock space This is a great program.
T h i s i s a g r e a t p r o g r a m.
Mock calls can be concatenated with pipes:
$> mock space This is a great program. | mock random
T h I S i S A G R e A t P R o g r a m .