summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-01-04 00:49:21 -0500
committerJune McEnroe <june@causal.agency>2020-01-04 00:49:21 -0500
commit8437b9c53e1754fa416bff9b8c83e22342d07f26 (patch)
tree828036f0b408b1fd15673d4c4e7694a0cc075496
parentImprove litterbox(1) documentation (diff)
downloadlitterbox-8437b9c53e1754fa416bff9b8c83e22342d07f26.tar.gz
litterbox-8437b9c53e1754fa416bff9b8c83e22342d07f26.zip
Expand scoop(1) documentation
-rw-r--r--scoop.149
1 files changed, 31 insertions, 18 deletions
diff --git a/scoop.1 b/scoop.1
index 253b2ea..11fc1e9 100644
--- a/scoop.1
+++ b/scoop.1
@@ -1,4 +1,4 @@
-.Dd January 1, 2020
+.Dd January 4, 2020
 .Dt SCOOP 1
 .Os
 .
@@ -33,7 +33,15 @@ The
 .Nm
 utility queries the
 .Xr litterbox 1
-IRC log database.
+IRC log database,
+matching events on the intersection
+of the criteria specified in arguments.
+With no arguments,
+all events in the database are matched.
+Events are output in order
+from oldest to newest.
+.
+.Pp
 If standard output is a terminal,
 colored output is piped to
 .Ev PAGER
@@ -57,13 +65,13 @@ Format timestamps using the
 .Ar format
 string,
 similar to
-.Xr strftime 3 .
+.Xr strftime 3 ,
+see
+.Aq Lk https://www.sqlite.org/lang_datefunc.html .
 The default format is ISO8601.
-See
-.Lk https://www.sqlite.org/lang_datefunc.html
 .
 .It Fl N Ar network
-Match events from contexts on
+Match events from
 .Ar network .
 .
 .It Fl T Ar target
@@ -74,18 +82,20 @@ of type
 or
 .Cm nick
 .Pc
-with
+with the target nickname
 .Ar target .
 .
 .It Fl a Ar time
 Match events which occurred after
-.Ar time
-in ISO8601 format.
+.Ar time ,
+of the format
+.Ar YYYY-MM-DD HH:MM:SS .
 .
 .It Fl b Ar time
 Match events which occurred before
-.Ar time
-in ISO8601 format.
+.Ar time ,
+of the format
+.Ar YYYY-MM-DD HH:MM:SS .
 .
 .It Fl c Ar context
 Match events from
@@ -94,8 +104,6 @@ either a channel or query name.
 .
 .It Fl d Ar path
 Set the database path.
-The database must have been initialized by
-.Xr litterbox 1 .
 The default path is as in
 .Xr litterbox 1 .
 .
@@ -104,6 +112,12 @@ Set the output format to one of
 .Cm plain ,
 .Cm color ,
 .Cm irc .
+The
+.Cm irc
+format outputs events
+as IRC protocol with
+.Sy server-time
+tags.
 The default format is
 .Cm color
 if standard output is a terminal,
@@ -111,7 +125,7 @@ if standard output is a terminal,
 otherwise.
 .
 .It Fl g
-Group events by context.
+Group events by network and channel or query name.
 .
 .It Fl h Ar host
 Match events from users with the hostname
@@ -177,16 +191,15 @@ The searchable columns are
 .Li target ,
 .Li message .
 For search query syntax, see
-.Lk https://www.sqlite.org/fts5.html#full_text_query_syntax
+.Aq Lk https://www.sqlite.org/fts5.html#full_text_query_syntax .
 .El
 .
 .Sh ENVIRONMENT
 .Bl -tag -width Ds
 .It Ev PAGER
 The command to pipe terminal output to.
-If it is unset,
-.Ev PAGER=less
-is used.
+The default is
+.Ev PAGER=less .
 .El
 .
 .Sh SEE ALSO
ommand functions. * cgit_clone_info() * cgit_clone_objects() * cgit_clone_head() * cgit_print_plain() * cgit_show_stats() In initialization routines, use the global context variable instead of passing a pointer around locally. Remove callback data parameter for cache slots This is no longer needed since the context is always read from the global context variable. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> 2014-01-16auth: have cgit calculate login addressJason A. Donenfeld This way we're sure to use virtual root, or any other strangeness encountered. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-01-16auth: lua string comparisons are time invariantJason A. Donenfeld By default, strings are compared by hash, so we can remove this comment. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-01-16authentication: use hidden form instead of refererJason A. Donenfeld This also gives us some CSRF protection. Note that we make use of the hmac to protect the redirect value. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-01-16auth: add basic authentication filter frameworkJason A. Donenfeld This leverages the new lua support. See filters/simple-authentication.lua for explaination of how this works. There is also additional documentation in cgitrc.5.txt. Though this is a cookie-based approach, cgit's caching mechanism is preserved for authenticated pages. Very plugable and extendable depending on user needs. The sample script uses an HMAC-SHA1 based cookie to store the currently logged in user, with an expiration date. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-01-16t0111: Additions and fixesLukas Fleischer * Rename the capitalize-* filters to dump.* since they also dump the arguments. * Add full argument validation to the email filters. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> 2014-01-16parsing.c: Remove leading space from committerLukas Fleischer