Alois Mahdal
1465aff5ab
Add line number assert function
11 年之前
Alois Mahdal
eeac2a21f0
Add argument to print init body
11 年之前
Alois Mahdal
126c9f1746
Name path printing argument nicer
11 年之前
Alois Mahdal
a7d67ce3b8
Make another warning more useful (yeah...)
11 年之前
Alois Mahdal
080d1b8d10
Use `caller` builtin instead of jumping through hoops
11 年之前
Alois Mahdal
9c6f6930b8
Add yum_any to install from disabled repos
11 年之前
Alois Mahdal
aaec41f86c
Make yummy functions pass options to yum
11 年之前
Alois Mahdal
b03b9bbc2d
Remove (really) unnecessary cat
11 年之前
Alois Mahdal
fbeb2acec3
Fix comma-and grammar oops
11 年之前
Alois Mahdal
3ebc8d1812
Even more useful warning
11 年之前
Alois Mahdal
e02a39ea7d
Add warning on ps -o comm= being truncated
11 年之前
Alois Mahdal
9f4a7d565e
Fix: pids_matching not working with ^ anchor
11 年之前
Alois Mahdal
34660340e7
Make warning more useful
11 年之前
Alois Mahdal
8a0536ec7b
Use nicer function name
The old name was bad because port is not listening, rather *something* is
listening on the port. The new name is better because we can extend it
like
listening_on -u UDP_PORT
listening_on -s UNIX_SOCKET
listening_on -a 127.0.0.1 -t 80
...
without losing much readability.
11 年之前
Alois Mahdal
2529fdfd50
Don't leak ctime
11 年之前
Alois Mahdal
addab17894
Don't echo NL unless something was found
11 年之前
Alois Mahdal
51724aaaa6
Add support for own return value test
11 年之前
Alois Mahdal
19fc9011bc
Improve and clarify guidelines
11 年之前
Alois Mahdal
6cbe24fc65
Add docstring to the rest of library
11 年之前
Alois Mahdal
0b8731e0a6
Do not use period in docstring summary
11 年之前
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...).
11 年之前
Alois Mahdal
74b38d1309
Rat out name of the disobedient caller
11 年之前
Alois Mahdal
edb55b48fb
Do not imply debug()
11 年之前
Alois Mahdal
f4f5bb0692
Add some debugging to wait_until
11 年之前
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.
11 年之前
Alois Mahdal
ee1a0b1e13
Support dot notation n fff
11 年之前
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)
11 年之前
Alois Mahdal
7d25bec5ec
Add docstrings for yummy
11 年之前
Alois Mahdal
d1d3853bf1
Fixprove usage printing from nvc_parse
11 年之前
Alois Mahdal
b0642414df
Fix regression in save_repo_for
11 年之前
Alois Mahdal
add7afbf9b
Explain purpose of greps
11 年之前
Alois Mahdal
684c1d8a87
Simplify pipe filling
(et voila,) tee supports more than one target
11 年之前
Alois Mahdal
9b16b0b6ec
Fix template mode
11 年之前
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.
11 年之前
Alois Mahdal
99148bb87c
Return error status if we did not find anything
11 年之前
Alois Mahdal
2a0cca79a3
Update template according to older change
11 年之前
Alois Mahdal
12aeec90b5
Fix modules' modes
11 年之前
Alois Mahdal
288a00c494
Don't be afraid to say something
11 年之前
Alois Mahdal
8e571ce262
Restructure library layout
Things have grown and some parts of layout now make more sense being in different module
11 年之前
Alois Mahdal
b3b386bd03
usagef is dead, use usage_is
11 年之前
Alois Mahdal
1e20d6ddf8
Drop d; this is not a daemon
11 年之前
Alois Mahdal
2f410dff68
Move filter() to core and simplify
11 年之前
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)
11 年之前
Alois Mahdal
96810886a1
Fix caller setting again
11 年之前
Alois Mahdal
94aa34bde9
Add TODO
Now it's getting serious ;)
11 年之前
Alois Mahdal
64ae9aac9a
Add basic mkpretty* printers
11 年之前
Alois Mahdal
c55729f10d
Add termcolors.sh
11 年之前
Alois Mahdal
bcab87e6ba
Use more appropriate prefix for pipe (namely, a pipe)
11 年之前
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.
11 年之前
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.
11 年之前