Alois Mahdal
4fc77b6010
Remove typo in tests
Somehow this did not break anything. The sole fact that the argument was
"ignored" was most bug in itself but we're not going to fix it as the
code gets rewritten any moment now.
před 9 roky
Alois Mahdal
d0d0f843d2
Add function justification to the docstring
před 9 roky
Alois Mahdal
b2670ce4e8
Strip in-line comments from values
před 9 roky
Alois Mahdal
40f9f2a8e3
Parse out only section name for matching
Tolerate spaces before the '[' and anything after the ']'.
Note that strict mode has nothing to do with this; we just need to get
the match right.
před 9 roky
Alois Mahdal
f6739a1bd6
Add tests for inline comments
před 9 roky
Alois Mahdal
ba48306017
Update TFKit to v0.0.6
před 9 roky
Alois Mahdal
36db9cb6b7
Revert "Choose last item with -1 instead of first"
This reverts commit a6dfb1bfd7008d99b64e4a5bde19fbfc2c66ff10.
Turns out that the behavior suggested in original comment is actually
the opposite from PATH, which is not intuitive, and makes it harder to
support for user customizations with inigrep.inigrep__mkpath, at least
as it's used in saturnin.
před 9 roky
Alois Mahdal
68943d935f
Give help in case of unknown option
před 9 roky
Alois Mahdal
98234cb31d
Add "module.function" notation to usage message
před 9 roky
Alois Mahdal
5be6c60e15
Fortify against some bad scenarios
před 9 roky
Alois Mahdal
4ee41e39bd
Add example to variable explanations
The 'caller' and 'frontend' may be hard to grasp; example should help.
před 9 roky
Alois Mahdal
dfa66198a4
Clarify some parts of docstring
před 9 roky
Alois Mahdal
d5c00a5a1f
Fix alignment
před 9 roky
Alois Mahdal
8be9f2ee8b
Fix typos
před 9 roky
Alois Mahdal
dffd4a31ae
Reduce unnecessary bashisms
před 9 roky
Alois Mahdal
7509425aab
Add basic tests for mkusage
před 9 roky
Alois Mahdal
b454bf91bf
Reduce debugging for speed
Remove iterated debugs (eg. over FFOO_INIGREP_PATH) and those appearing
as arguments
před 9 roky
Alois Mahdal
f5812e4e12
Use more readable logic for delimiter placement
před 10 roky
Alois Mahdal
4670bbbca0
Update Mkit to v0.0.2
před 10 roky
Alois Mahdal
80e9ea61a1
Rename wrapped test to stand out
před 10 roky
Alois Mahdal
83cfe01968
Add tests for nested debug
před 10 roky
Alois Mahdal
a5b34cc3f8
Add parentheses to denote debug from function
před 10 roky
Alois Mahdal
33f9bb6c3b
Update TFKit to v0.0.5
před 10 roky
Alois Mahdal
dfb4d4d8e9
Update API test after recent change
před 10 roky
Alois Mahdal
ce4cf35fae
Compose filters as strings and use eval
Seems to be more readable and shows ~15% better performance on full
suite run.
před 10 roky
Alois Mahdal
cbbef9c7b1
Make trace actually useful
před 10 roky
Alois Mahdal
f0de04b707
Add die() test cases
před 10 roky
Alois Mahdal
e48cc26146
Split pretty_basic oracles by type
před 10 roky
Alois Mahdal
bc611409e3
Add essential locations to test report header
So that it's easier to check if we are using the right SUT in case it's
both installed and deployed in temporary test dir.
před 10 roky
Alois Mahdal
f2358e2866
Fortify against missing parameters
If user does not provide mandatory parameter, `shift 2` will fail but
will not shift anything, resulting in infinite loop.
před 10 roky
Alois Mahdal
0b4063a241
Fix and clean up validators
Fixes issue when empty string generated warning. Correct behavior is
that empty string does return with non-zero but does not issue warning
as this is to be commonly used to set default values.
před 10 roky
Alois Mahdal
e878eb6bd8
Update Mkit to v0.0.1
před 10 roky
Alois Mahdal
73521a9678
Use nicer formatting for HTML
* Do not split text per line,
* use `<pre/>` for main text,
* use `<span />` for debug headers,
* and use more suitable class names.
před 10 roky
Alois Mahdal
49c75acc59
Update mkhelp docstring
před 10 roky
Alois Mahdal
83289c736e
Do not coerce 'mkhelp' to 'mkusage' style
Not sure why I did it in the first place.
před 10 roky
Alois Mahdal
bb41e83baf
Remove unnecessary bitter note
před 10 roky
Alois Mahdal
84ec78a90c
Use more appropriate classes
před 10 roky
Alois Mahdal
fb719e51e3
Do not force line mode
This disables user from choosing different mode; behave as other
printers.
před 10 roky
Alois Mahdal
89b02aacc0
Work properly with '-' or /dev/stdin
/dev/stdin will be treated as normal file, albeit `test -s` would detect
it as non-existent. '-' will cause STDIN to be used as wellm but will
omit header.
před 10 roky
Alois Mahdal
ed25fd2305
Add missing docstrings
před 10 roky
Alois Mahdal
f2a8112560
Fix usage when _pretty__* called directly
exit does not work as we want in subshell, so we need to exit higher.
před 10 roky
Alois Mahdal
d05232a7dd
Fix typo in _expand_fspec_to_fun
Introduced by fefce4a0, typo invalidated catfun and ffdoc
před 10 roky
Alois Mahdal
4df409f0ec
Add tests on documentation features
před 10 roky
Alois Mahdal
2041756e5e
Exit properly if core import fails
před 10 roky
Alois Mahdal
c8db434ff4
Add/remove MKIT_LOCAL as needed
před 10 roky
Alois Mahdal
f0eb035b4d
Update .gitignore for new mkit
před 10 roky
Alois Mahdal
8333bbdf98
Skip cleanup if built.list is empty
před 10 roky
Alois Mahdal
608bfcdc66
Move mkit local files to own subdir
před 10 roky
Alois Mahdal
eb00c7d2ab
Update TFKit to version v0.0.4
před 10 roky
Alois Mahdal
bdf3d8cf44
Update TFKit to version v0.0.3
před 10 roky