context/interactive
This commit is contained in:
parent
8ed00e1788
commit
b1fc5bf235
1 changed files with 5 additions and 5 deletions
|
@ -263,17 +263,17 @@ EOF
|
|||
"bash" | "dash" | "sh") unset command ;;
|
||||
*) ;;
|
||||
esac
|
||||
# context / shell
|
||||
if rwx_shell_interactive; then
|
||||
# display help
|
||||
rwx_code_help
|
||||
# context / command
|
||||
if [ -n "${command}" ]; then
|
||||
else
|
||||
local function
|
||||
# find the matching function
|
||||
function="$(rwx_code_command_function "${command}")"
|
||||
if [ -n "${function}" ]; then
|
||||
"${function}" "${@}"
|
||||
fi
|
||||
# context / shell
|
||||
else
|
||||
# display help
|
||||
rwx_code_help
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue