Update for new __fisher_help_* functions.

This commit is contained in:
Jorge Bucaran 2016-02-16 17:42:41 +09:00
parent 3eb4f2b4c8
commit 47f787535a
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30
4 changed files with 11 additions and 11 deletions

View file

@ -16,7 +16,7 @@ function -S teardown
functions -e fisher_$mock_command
end
test "$TESTNAME - Evaluate `fisher_' (sub) commands"
test "$TESTNAME - Evaluate fisher_ (sub) commands"
(fisher $mock_command) = Usage:...
end
@ -36,7 +36,7 @@ test "$TESTNAME - Display usage help"
(fisher | sed 1q) = "Usage: fisher <command> [<args>] [--list] [--version] [--help]"
end
test "$TESTNAME - Display basic information about using the `help' command by default"
test "$TESTNAME - Display basic information help info about 'help'"
(fisher | tail -n2 | xargs) = "Use fisher help -g to list guides and other documentation. See fisher help <command or concept> to access a man page."
end

View file

@ -21,7 +21,7 @@ Usage: fisher install [<plugins>] [--force] [--quiet] [--help]
-h --help Show usage help
Usage: fisher help [<keyword>] [--all] [--guides] [--help]
-a --all List available documentation
-g --guides List available guides
-u --usage[=<cmd>] Display command usage
-h --help Show usage help
-a --all List available documentation
-g --guides List available guides
--usage[=<cmd>] Display command usage
-h --help Show usage help

View file

@ -17,15 +17,15 @@ function -S teardown
rm -rf $path
end
test "$TESTNAME - Show both available guides and command with `help --all`"
test "$TESTNAME - Show both available guides and command with help --all"
! -z (fisher help --all | grep -E 'Available Commands:$|Other Documentation:$' | xargs)
end
test "$TESTNAME - Show available guides/tutorials with `--guides`"
test "$TESTNAME - Show available guides/tutorials with --guides"
! -z (fisher help --guides | grep -E 'Other Documentation:$' | xargs)
end
test "$TESTNAME - Show usage help with `--usage=command`"
test "$TESTNAME - Show usage help with --usage=command"
(fisher help --usage=help) = (fisher help -h)
end

View file

@ -35,11 +35,11 @@ test "$TESTNAME - Append installed plugins to fishfile"
)
end
test "$TESTNAME - Add plugin key bindings to `key_bindings.fish`"
test "$TESTNAME - Add plugin key bindings to key_bindings.fish"
"##foobar## ##foobar##" = (cat $path/config/key_bindings.fish | xargs)
end
test "$TESTNAME - Add `<plugin>/scripts/` to scripts directory"
test "$TESTNAME - Add <plugin>/scripts/ to scripts directory"
-e $path/config/scripts/norf.py
end