From 8f062f956a65756986055341886b6acff5c96efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Fri, 26 May 2023 15:58:42 +0200 Subject: [PATCH] Work on all actions. --- doc/hackerbase.1 | 47 ++++++++++++++++++++++++++++++++-------------- src/hackerbase.scm | 2 +- 2 files changed, 34 insertions(+), 15 deletions(-) diff --git a/doc/hackerbase.1 b/doc/hackerbase.1 index 027b7e8..6342b3d 100644 --- a/doc/hackerbase.1 +++ b/doc/hackerbase.1 @@ -67,59 +67,78 @@ hackerbase - HackerSpace Members Database tool .TP .B \-h -Show help. +Display brief description of all actions and options. .TP .B \-license -Show licensing terms. +Show licensing terms. See \fBCOPYRIGHT\fR. .TP .B \-info -Show info +With no member specified by neither \fB-mi\fR nor \fB-mn\fR display +overall hackerbase information with organizational bodies memberships +and lists of members of various statuses. + +When a member is specified, displays its information from the +database, all identified bank transactions, membership information and +a calendar showing current status of the member during given month. .TP .B \-print -print file +Prints given member file with errors and warnings highlighted. .TP .B \-blame -blame file +Prints given member file annotated by the date of last change for each +line with errors and warnings highlithed. .TP .B \-edit -edit file +Starts text editor on given user member file. It uses the $EDITOR +environment variable as user's editor preference. If this variable is +unset, it uses whichever editor is found in $PATH under the name +"editor". .TP .B \-fees -fees table +Prints a table listing all existing members and their balance with +respect to paying their membership fees. If the \fB\-destroyed\fR +option is provided then even destroyed members are included. .TP .B \-problems -show problems +Checks all member records for problems and if any are found, print for +each of them the information table (like \fB\-info\fR for one member) +and annotated and highlighted member file source. .TP .B \-status -git status +Show members directory git repository status. Used for checking +whether there are untracked and/or uncommitted changes. .TP .B \-unpaired -unknown trans +Display a table with unpaired bank transactions with ID greater than +the last id that was manually checked. See \fB\-checked\fR option. .TP .B \-idstats -allocated ids +Returns information about used and available member IDs. .TP .B \-genid -generate id +Generates a valid member id that is not used yet. .TP .B \-mlcheck -check membership internal +Check internal mailinglist membership. All members - including +suspended ones - should be subscribed this mailinglist. No other +emails should be subscribed to it. .TP .B \-mlsync -sync internal membership +Like \fB\-mlcheck\fR but automatically ensuring the subscriptions are +according to the specification. .TP .B \-notify diff --git a/src/hackerbase.scm b/src/hackerbase.scm index ebf3d23..a8f5f83 100644 --- a/src/hackerbase.scm +++ b/src/hackerbase.scm @@ -312,7 +312,7 @@ (when (not (null? mrs)) (newline) (print-member-table (car mrs)) - (print-member-source (car mrs)) + (print-member-blame (car mrs)) (loop (cdr mrs)))))))) ((fees) (newline)