dots2/.antidote/tests/test_cmd_help.md

4.4 KiB

antidote help tests

Setup

% source ./tests/_setup.zsh
% source ./antidote.zsh
%

General

antidote help command exists

% antidote help &>/dev/null; echo $?
0
%

antidote --h/--help works

% antidote -h &>/dev/null; echo $?
0
% antidote --help &>/dev/null; echo $?
0
%

antidote man pages work

% PAGER=cat man antidote | head -n 1 | sed 's/  */ /g'
antidote(1) Antidote Manual antidote(1)
%

antidote man pages are in $MANPATH

% [[ "$MANPATH" == *"$PWD/man:"* ]] || echo 'MANPATH not set properly'
%

antidote-bundle

% antidote help bundle | head -n 1 | sed 's/  */ /g'
antidote-bundle(1) Antidote Manual antidote-bundle(1)
% antidote bundle --help | head -n 1 | sed 's/  */ /g'
antidote-bundle(1) Antidote Manual antidote-bundle(1)
% antidote bundle -h | head -n 1 | sed 's/  */ /g'
antidote-bundle(1) Antidote Manual antidote-bundle(1)
%

antidote-help

% antidote help help | head -n 1 | sed 's/  */ /g'
antidote-help(1) Antidote Manual antidote-help(1)
% antidote help --help | head -n 1 | sed 's/  */ /g'
antidote-help(1) Antidote Manual antidote-help(1)
% antidote help -h | head -n 1 | sed 's/  */ /g'
antidote-help(1) Antidote Manual antidote-help(1)
%

antidote-home

% antidote help home | head -n 1 | sed 's/  */ /g'
antidote-home(1) Antidote Manual antidote-home(1)
% antidote home --help | head -n 1 | sed 's/  */ /g'
antidote-home(1) Antidote Manual antidote-home(1)
% antidote home -h | head -n 1 | sed 's/  */ /g'
antidote-home(1) Antidote Manual antidote-home(1)
%

antidote-init

% antidote help init | head -n 1 | sed 's/  */ /g'
antidote-init(1) Antidote Manual antidote-init(1)
% antidote init --help | head -n 1 | sed 's/  */ /g'
antidote-init(1) Antidote Manual antidote-init(1)
% antidote init -h | head -n 1 | sed 's/  */ /g'
antidote-init(1) Antidote Manual antidote-init(1)
%

antidote-install

% antidote help install | head -n 1 | sed 's/  */ /g'
antidote-install(1) Antidote Manual antidote-install(1)
% antidote install --help | head -n 1 | sed 's/  */ /g'
antidote-install(1) Antidote Manual antidote-install(1)
% antidote install -h | head -n 1 | sed 's/  */ /g'
antidote-install(1) Antidote Manual antidote-install(1)
%

antidote-list

% antidote help list | head -n 1 | sed 's/  */ /g'
antidote-list(1) Antidote Manual antidote-list(1)
% antidote list --help | head -n 1 | sed 's/  */ /g'
antidote-list(1) Antidote Manual antidote-list(1)
% antidote list -h | head -n 1 | sed 's/  */ /g'
antidote-list(1) Antidote Manual antidote-list(1)
%

antidote-load

% antidote help load | head -n 1 | sed 's/  */ /g'
antidote-load(1) Antidote Manual antidote-load(1)
% antidote load --help | head -n 1 | sed 's/  */ /g'
antidote-load(1) Antidote Manual antidote-load(1)
% antidote load -h | head -n 1 | sed 's/  */ /g'
antidote-load(1) Antidote Manual antidote-load(1)
%

antidote-path

% antidote help path | head -n 1 | sed 's/  */ /g'
antidote-path(1) Antidote Manual antidote-path(1)
% antidote path --help | head -n 1 | sed 's/  */ /g'
antidote-path(1) Antidote Manual antidote-path(1)
% antidote path -h | head -n 1 | sed 's/  */ /g'
antidote-path(1) Antidote Manual antidote-path(1)
%

antidote-update

% antidote help update | head -n 1 | sed 's/  */ /g'
antidote-update(1) Antidote Manual antidote-update(1)
% antidote update --help | head -n 1 | sed 's/  */ /g'
antidote-update(1) Antidote Manual antidote-update(1)
% antidote update -h | head -n 1 | sed 's/  */ /g'
antidote-update(1) Antidote Manual antidote-update(1)
%

antidote-script

% antidote help script
No manual entry for antidote-script
antidote - the cure to slow zsh plugin management

usage: antidote [<flags>] <command> [<args> ...]

flags:
  -h, --help           Show context-sensitive help
  -v, --version        Show application version

commands:
  help      Show documentation
  load      Statically source all bundles from the plugins file
  bundle    Clone bundle(s) and generate the static load script
  install   Clone a new bundle and add it to your plugins file
  update    Update antidote and its cloned bundles
  purge     Remove a cloned bundle
  home      Print where antidote is cloning bundles
  list      List cloned bundles
  path      Print the path of a cloned bundle
  init      Initialize the shell for dynamic bundles
%

Teardown

% t_teardown
%