Commit 65dfadfc authored by Derek Stavis's avatar Derek Stavis

lib: deprecate `available` function

This PR officially marks available as deprecated, moving the
deprecated functionality to omf plugin compat quarantine directory.
parent 370913ec
# SYNOPSIS
# available [name]
#
# OVERVIEW
# Check if a function or program is available.
function available -a name -d "Check if a function or program is available."
type "$name" ^/dev/null >&2
end
function available
echo (status -t)[5] | read -la caller
printf 'warning: function %savailable%s is deprecated and will be removed soon.\n' \
(set_color -u) (set_color normal)
contains input $caller
or echo $caller
type -q $argv
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment