Alois Mahdal
f58cde84b2
Do not force empty line before indent mode
This was not intended, only indentation was intended (no pun indented).
Seriously, omitting the newline makes the -i mode more useful as we can
now use syntax like:
mkusage "topic" \
--
"topics:" \
"${topics[@]}"
That is much less code, especially if the list we wanted to include is
already in array.
6 年之前
Alois Mahdal
6030cb674f
Adjust oracle according to 'declare' change in Bash 4.4
Bash 4.4 and later does not quote array declaration when `declare -p` is
used.
6 年之前
Alois Mahdal
d133748034
Move oracles inside TF_RUN for better control
6 年之前
Alois Mahdal
32ce9930e8
Rename binary: shellfu-get to sfpath
The only purpose of the binary is to show local Shellfu path and it's
in every single Shellfu script. Let's save people some typing.
6 年之前
Alois Mahdal
4e09b8efd6
Add test for mkusage '-w' option
6 年之前
Alois Mahdal
a24b29bb38
Enable setting self name for mkusage() explicitly
7 年之前
Alois Mahdal
eba38f784c
Fix forgotten test update
8 年之前
Alois Mahdal
31f7e6cc7e
Move SHELLFU_DEBUG* and SHELLFU_VERBOSE to pretty where they belong
These variables are not specific to shellfu internals but in all ways
specific to pretty.sh module. The prefix is mostly historical cruft.
Let's clean that up.
8 年之前
Alois Mahdal
571c4be131
Revamp mkusage backend
* Added support for "options", "commands" and plain
sections.
* Changed default for multi-line usage lines to use
header rather than prefix.
8 年之前
Alois Mahdal
5bf8b04b68
Add tests for debug -v
8 年之前
Alois Mahdal
b427e9f008
Update test suite for new TFKit
8 年之前
Alois Mahdal
7efeba4ea3
Enable muting of debug output per module and/or function
8 年之前
Alois Mahdal
0d48330c84
Rename to shellfu: update tests
8 年之前
Alois Mahdal
7509425aab
Add basic tests for mkusage
8 年之前
Alois Mahdal
80e9ea61a1
Rename wrapped test to stand out
9 年之前
Alois Mahdal
83cfe01968
Add tests for nested debug
9 年之前
Alois Mahdal
f0de04b707
Add die() test cases
9 年之前
Alois Mahdal
e48cc26146
Split pretty_basic oracles by type
9 年之前
Alois Mahdal
7147c2248d
Apply changes suggested by ShellCheck (tests)
9 年之前
Alois Mahdal
fc8ea55ea1
Split tfkit from suite itself
so that tfkit can now be tracked in separate repo. (In future we might
add it as submodule)
9 年之前
Alois Mahdal
bbba0822f0
Add basic test suite for pretty.sh
9 年之前