mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Update for new __fisher_help_* functions.
This commit is contained in:
parent
772912b0d7
commit
c74d55f35b
4 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
8
test/fixtures/help/usage.txt
vendored
8
test/fixtures/help/usage.txt
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue