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.
vor 6 Jahren
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.
vor 6 Jahren
Alois Mahdal
d133748034
Move oracles inside TF_RUN for better control
vor 6 Jahren
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.
vor 6 Jahren
Alois Mahdal
4e09b8efd6
Add test for mkusage '-w' option
vor 6 Jahren
Alois Mahdal
a24b29bb38
Enable setting self name for mkusage() explicitly
vor 7 Jahren
Alois Mahdal
eba38f784c
Fix forgotten test update
vor 8 Jahren
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.
vor 8 Jahren
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.
vor 8 Jahren
Alois Mahdal
5bf8b04b68
Add tests for debug -v
vor 8 Jahren
Alois Mahdal
b427e9f008
Update test suite for new TFKit
vor 8 Jahren
Alois Mahdal
7efeba4ea3
Enable muting of debug output per module and/or function
vor 8 Jahren
Alois Mahdal
0d48330c84
Rename to shellfu: update tests
vor 8 Jahren
Alois Mahdal
7509425aab
Add basic tests for mkusage
vor 8 Jahren
Alois Mahdal
80e9ea61a1
Rename wrapped test to stand out
vor 9 Jahren
Alois Mahdal
83cfe01968
Add tests for nested debug
vor 9 Jahren
Alois Mahdal
f0de04b707
Add die() test cases
vor 9 Jahren
Alois Mahdal
e48cc26146
Split pretty_basic oracles by type
vor 9 Jahren
Alois Mahdal
7147c2248d
Apply changes suggested by ShellCheck (tests)
vor 9 Jahren
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)
vor 9 Jahren
Alois Mahdal
bbba0822f0
Add basic test suite for pretty.sh
vor 9 Jahren