Alois Mahdal
19fc9011bc
Improve and clarify guidelines
il y a 11 ans
Alois Mahdal
6cbe24fc65
Add docstring to the rest of library
il y a 11 ans
Alois Mahdal
0b8731e0a6
Do not use period in docstring summary
il y a 11 ans
Alois Mahdal
911326a692
Revamp caller identification
This uses even other function __cut_stack to identify two function
names: $caller is the first function on the stack to be be outside
API and is interesting for user so can be used in pretty printer
(typically for debug output). $internal is name of the wrapper
from this API; this is used to choose the right pretty printer
(debug, warn...).
il y a 11 ans
Alois Mahdal
74b38d1309
Rat out name of the disobedient caller
il y a 11 ans
Alois Mahdal
edb55b48fb
Do not imply debug()
il y a 11 ans
Alois Mahdal
f4f5bb0692
Add some debugging to wait_until
il y a 11 ans
Alois Mahdal
1e9d59841e
Emphasize that src does get set in this call
Make it clear that the assignment must happen, otherwise we might easily
end up wit empty src or mixup between local and caller's local.
il y a 11 ans
Alois Mahdal
ee1a0b1e13
Support dot notation n fff
il y a 11 ans
Alois Mahdal
7373a65565
Bring back cat to the pipe
For some strange reason, the tee pipe did not work unless stuffed by cat
(all the output pipes remained empty)
il y a 11 ans
Alois Mahdal
7d25bec5ec
Add docstrings for yummy
il y a 11 ans
Alois Mahdal
d1d3853bf1
Fixprove usage printing from nvc_parse
il y a 11 ans
Alois Mahdal
b0642414df
Fix regression in save_repo_for
il y a 11 ans
Alois Mahdal
add7afbf9b
Explain purpose of greps
il y a 11 ans
Alois Mahdal
684c1d8a87
Simplify pipe filling
(et voila,) tee supports more than one target
il y a 11 ans
Alois Mahdal
9b16b0b6ec
Fix template mode
il y a 11 ans
Alois Mahdal
9653900239
Split yummy.guess_rtagn to guess_rtag_word and guess_rtag_num
For example, in 'fc20', these will match 'fc' and '20', respectively.
il y a 11 ans
Alois Mahdal
99148bb87c
Return error status if we did not find anything
il y a 11 ans
Alois Mahdal
2a0cca79a3
Update template according to older change
il y a 11 ans
Alois Mahdal
12aeec90b5
Fix modules' modes
il y a 11 ans
Alois Mahdal
288a00c494
Don't be afraid to say something
il y a 11 ans
Alois Mahdal
8e571ce262
Restructure library layout
Things have grown and some parts of layout now make more sense being in different module
il y a 11 ans
Alois Mahdal
b3b386bd03
usagef is dead, use usage_is
il y a 11 ans
Alois Mahdal
1e20d6ddf8
Drop d; this is not a daemon
il y a 11 ans
Alois Mahdal
2f410dff68
Move filter() to core and simplify
il y a 11 ans
Alois Mahdal
43f6f035cd
Add prefix also to colored output
Colorized output should bear roughly the same info as plain text even
after stripping color chars (e.g. by c/p)
il y a 11 ans
Alois Mahdal
96810886a1
Fix caller setting again
il y a 11 ans
Alois Mahdal
94aa34bde9
Add TODO
Now it's getting serious ;)
il y a 11 ans
Alois Mahdal
64ae9aac9a
Add basic mkpretty* printers
il y a 11 ans
Alois Mahdal
c55729f10d
Add termcolors.sh
il y a 11 ans
Alois Mahdal
bcab87e6ba
Use more appropriate prefix for pipe (namely, a pipe)
il y a 11 ans
Alois Mahdal
1d96b4be8b
Use separate switch to enable debug in ffood init
Due to immature way how mkpretty loads pretifier, `ffood import` is
called with every output, which makes any other debugging output
useless.
Hot fix is to use different switch. Should the mkpretty mechanism be
improved, we can merge the switches back.
il y a 11 ans
Alois Mahdal
3be73bc165
Fix and simplify mechanism to enable mkpretty.
Mkpretty is now always on and defined globally as name of the pretifier,
which is "plain" by default.
"plain" prettifier only adds "debug" and caller name prefix to the debug
output.
il y a 11 ans
Alois Mahdal
721bf63e3d
Fix usage case
usage is supposed to be implemented in user script by call to usage_is
(so that the actual patterns can be defined only once and on the lowest
indent level).
So actually when we see usage_is, we want to skip one FUNCNAME in stack.
(This will not work properly if the suggested usage is not adhered to.)
il y a 11 ans
Alois Mahdal
9551f81efb
Update rest of library to work with new debug -v
il y a 11 ans
Alois Mahdal
4adfc9484f
Completely revamp printing mechanism
Use common backend, add -f and -c, add arbitrary pretty printers support
il y a 11 ans
Alois Mahdal
7ea1bfaf9f
Add -v option to fff
il y a 11 ans
Alois Mahdal
427b7f73a7
Drop empty lines from output
il y a 11 ans
Alois Mahdal
bfdcaa3456
Update proj_ol with changed key naming
il y a 11 ans
Alois Mahdal
fe3d16d1cd
Fix expr to kw conversion
il y a 11 ans
Alois Mahdal
7a7d39bbca
Fix path traversal
Do not rely on IFS; it does not work with quotes, i.e. spaces in paths.
il y a 11 ans
Alois Mahdal
2383836da4
Fix debug frenzy
il y a 11 ans
Alois Mahdal
0fbcec8499
Fix piping
il y a 11 ans
Alois Mahdal
d9aa0a4584
Add new filter
il y a 11 ans
Alois Mahdal
7b6d994961
Orthogonize pipes to emphasize flow
il y a 11 ans
Alois Mahdal
301852e613
Add a debug frenzy at the end
il y a 11 ans
Alois Mahdal
0fecbd8541
Move info functions to ffmanage
il y a 11 ans
Alois Mahdal
5eaf341596
Add ffood wrappers ffdoc and ffmanage
il y a 11 ans
Alois Mahdal
0fdb17dd27
Revamp ffood() and add listing features
ffood now employs simpler algorithm to choose file to import and also
is able to list module contents.
il y a 11 ans
Alois Mahdal
04709a486b
Do not override debug status
il y a 11 ans