mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-17 09:26:08 +00:00
63fd25dacb
+ Add documentation and examples. + Add new functions to interact with the framework: + spec.eval - eval a function by name and echo its description field + spec.functions - prints functions currently in scope that match the key glob + spec.log - log a message / test result + spec.run - run suite of tests + Rename list.erase to erase.
17 lines
388 B
Fish
17 lines
388 B
Fish
# NAME
|
|
# spec.functions - echo functions existing in the global scope that match
|
|
# the key glob.
|
|
# SYNOPSIS
|
|
# spec.functions <key>
|
|
#
|
|
# EXAMPLES
|
|
# spec.functions "describe_"
|
|
# spec.functions "before_"
|
|
#/
|
|
function spec.functions -a key
|
|
if [ -n "$key" ]
|
|
# Skip empty strings to avoid fetching all global functions.
|
|
functions -n | grep \^"$key"
|
|
end
|
|
end
|