mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +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
|
functions -e fisher_$mock_command
|
||||||
end
|
end
|
||||||
|
|
||||||
test "$TESTNAME - Evaluate `fisher_' (sub) commands"
|
test "$TESTNAME - Evaluate fisher_ (sub) commands"
|
||||||
(fisher $mock_command) = Usage:...
|
(fisher $mock_command) = Usage:...
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ test "$TESTNAME - Display usage help"
|
||||||
(fisher | sed 1q) = "Usage: fisher <command> [<args>] [--list] [--version] [--help]"
|
(fisher | sed 1q) = "Usage: fisher <command> [<args>] [--list] [--version] [--help]"
|
||||||
end
|
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."
|
(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
|
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
|
-h --help Show usage help
|
||||||
Usage: fisher help [<keyword>] [--all] [--guides] [--help]
|
Usage: fisher help [<keyword>] [--all] [--guides] [--help]
|
||||||
|
|
||||||
-a --all List available documentation
|
-a --all List available documentation
|
||||||
-g --guides List available guides
|
-g --guides List available guides
|
||||||
-u --usage[=<cmd>] Display command usage
|
--usage[=<cmd>] Display command usage
|
||||||
-h --help Show usage help
|
-h --help Show usage help
|
||||||
|
|
|
@ -17,15 +17,15 @@ function -S teardown
|
||||||
rm -rf $path
|
rm -rf $path
|
||||||
end
|
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)
|
! -z (fisher help --all | grep -E 'Available Commands:$|Other Documentation:$' | xargs)
|
||||||
end
|
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)
|
! -z (fisher help --guides | grep -E 'Other Documentation:$' | xargs)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "$TESTNAME - Show usage help with `--usage=command`"
|
test "$TESTNAME - Show usage help with --usage=command"
|
||||||
(fisher help --usage=help) = (fisher help -h)
|
(fisher help --usage=help) = (fisher help -h)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -35,11 +35,11 @@ test "$TESTNAME - Append installed plugins to fishfile"
|
||||||
)
|
)
|
||||||
end
|
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)
|
"##foobar## ##foobar##" = (cat $path/config/key_bindings.fish | xargs)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "$TESTNAME - Add `<plugin>/scripts/` to scripts directory"
|
test "$TESTNAME - Add <plugin>/scripts/ to scripts directory"
|
||||||
-e $path/config/scripts/norf.py
|
-e $path/config/scripts/norf.py
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue