explain function improved

This commit is contained in:
m8in
2026-06-17 23:59:07 +02:00
parent 0ef7999816
commit ebbcba5c0f
+1 -1
View File
@@ -438,7 +438,7 @@ function base.explain() {
[ "${3}" == "${_FUNCTION}" ] \ [ "${3}" == "${_FUNCTION}" ] \
&& echo "Then you can use the function '${_FUNCTION}()' as follows:" \ && echo "Then you can use the function '${_FUNCTION}()' as follows:" \
&& echo "----------------------------------------------------------------------------" \ && echo "----------------------------------------------------------------------------" \
&& grep -B 10 -F "${_FUNCTION}()" "${_MODULE_PREFIX}.module.sh" | grep -E '^#.*' \ && grep -B 20 -F "${_FUNCTION}()" "${_MODULE_PREFIX}.module.sh" | grep -A 19 -E '^[[:blank:]]*$' | grep -oE '^#.*$' \
&& return 0 && return 0
done done
} }