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 ;;
|
"bash" | "dash" | "sh") unset command ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
# context / shell
|
||||||
|
if rwx_shell_interactive; then
|
||||||
|
# display help
|
||||||
|
rwx_code_help
|
||||||
# context / command
|
# context / command
|
||||||
if [ -n "${command}" ]; then
|
else
|
||||||
local function
|
local function
|
||||||
# find the matching function
|
# find the matching function
|
||||||
function="$(rwx_code_command_function "${command}")"
|
function="$(rwx_code_command_function "${command}")"
|
||||||
if [ -n "${function}" ]; then
|
if [ -n "${function}" ]; then
|
||||||
"${function}" "${@}"
|
"${function}" "${@}"
|
||||||
fi
|
fi
|
||||||
# context / shell
|
|
||||||
else
|
|
||||||
# display help
|
|
||||||
rwx_code_help
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue