diff --git a/README.md b/README.md index 0ebe807..99eb226 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ gh repo create rwxrob/mycmd -p rwxrob/template-bash-command Obviously, not all of this is needed for many Bash scripts, but anything with more than two subcommands will benefit from the builtin tab completion, embedded Markdown help documentation support, and included -functions (`usage`, `_filter`, `_filterbuf`, `_have`, etc.) +functions (`usage`, `_filter`, `_buffer`, `_have`, etc.) ## Installation diff --git a/example b/cmd similarity index 98% rename from example rename to cmd index 809570e..5afa5d5 100755 --- a/example +++ b/cmd @@ -40,7 +40,7 @@ x_foo() { help[bar]='The `bar` command bars.' x_bar() { - _filterbuf "$@" && return $? + _buffer "$@" && return $? echo "would bar: $*" } @@ -107,7 +107,7 @@ _filter(){ done } -_filterbuf() { +_buffer() { [[ -n "$1" ]] && return 1 "${FUNCNAME[1]}" "$(