]> Sergey Matveev's repositories - public-inbox.git/commit
lei: support for -$DIGIT and -$SIG CLI switches
authorEric Wong <e@80x24.org>
Fri, 18 Dec 2020 07:16:58 +0000 (07:16 +0000)
committerEric Wong <e@80x24.org>
Sat, 19 Dec 2020 09:32:08 +0000 (09:32 +0000)
commitb28dcf96700a79616e7338bb8610f89155dd57e4
treefa1fc80c00d6d8e29348be4fed175311f793a521
parent223d66dfcf9d0915709e23a561322e8bb4a7fac6
lei: support for -$DIGIT and -$SIG CLI switches

I'm a bit spoiled by using single-dash digit options
from common tools: ("git log -$DIGIT", "kill -9",
"tail -1", ...), so we'll support it for limiting
query results.

But first, make it easier to send arbitrary signals to
the daemon via "daemon-kill".  "daemon-stop" is redundant,
now, and removed, since the default for "daemon-kill" is
SIGTERM to match kill(1) behavior.
lib/PublicInbox/LEI.pm
t/lei.t