~gbmor/clinte

ref: fe77fcfc5562453e6a408a337bb93ffe240cf94a clinte/clinte.1 -rw-r--r-- 2.3 KiB
fe77fcfcBenjamin Morrison man page for clinte 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.Dd July 3, 2020
.Dt CLINTE 1
.Os
.Sh NAME
.Nm clinte
.Nd Command-line community notes board - CLI NoTEs
.Sh SYNOPSIS
.Nm
.Op Fl v
.Op Fl l Ar length
.Op post
.Op update Ar id
.Op delete Ar id
.
.Sh DESCRIPTION
.Nm
is a command-line community notes board, aimed at public-access UNIX systems.
Users may append a note, which is automatically tagged with their username.
Other users may view all notes, but users may only edit or delete their own.
Upon login, users are notified of unseen notes.
.Pp
All flags and commands are optional.
The default behavior is to display the 15 most recent posts.
.Pp
Subject lines are truncated to 50 characters.
Post bodies are truncated to 500 characters.
.Pp
When creating a new post or editing a previous post,
.Ev $EDITOR
is called.
If
.Ev $EDITOR
is not set,
.Xr nano 1
is called.
.
.Ss Flags
.Bl -tag -width Ds
.It Fl v
Verbose logging.
If there's an error, hopefully something useful will be included in
.Pa /tmp/clinte_$USER.log
.It Fl l Ar length
Specify the line length for wrapping post bodies.
Defaults to 80.
If the value passed is below 10, line wrapping will be disabled.
.El
.
.Ss Commands
.Bl -tag -width Ds
.It Cm post
Compose a new post to add to the notes board.
.
.It Cm update Op Ar id
Edit the post numbered
.Ar id
if it was previously composed by the user.
If
.Ar id
is omitted, the user will be prompted for it.
.
.It Cm delete Op Ar id
Remove a post numbered
.Ar id
if it was previously composed by the user.
If
.Ar id
is omitted, the user will be prompted for it.
.El
.
.Ss Files
Posts are stored chronologically in a file located at
.Pa /usr/local/clinte/clinte.json
.Pp
The format of the file is as follows:
.
.Bd -literal -offset indent
{
    "posts": [
        {
            "title": "sample title",
            "author": "sample author",
            "body": "sample body"
        }
    ]
}
.Ed
.
.
.Ss Notifications
.Nm
installs a script to
.Pa /etc/profile.d/
which notifies you of unseen posts upon logging in.
However, some people may find this behavior to be annoying.
To suppress notifications,
.Xr touch 1
.Pa $HOME/.hushclinte .
.Sh AUTHORS
.An gbmor Aq Mt ben@gbmor.dev
.Sh BUGS
Send a message to the mailing list:
.Mt ~gbmor/clinte@lists.sr.ht
.Pp
You may also open a ticket at:
.Lk https://todo.sr.ht/~gbmor/clinte
.Pp
Or, /msg gbmor on tilde.chat or freenode.