From e1bfbf8e382cca744f22fa471f97c14cc43beddc Mon Sep 17 00:00:00 2001 From: rwxrob Date: Mon, 9 Aug 2021 19:01:36 -0400 Subject: [PATCH] Rename `_filterbuf` to `_buffer` --- README.md | 2 +- example => cmd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename example => cmd (98%) 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]}" "$(