diff --git a/TODO.txt b/TODO.txt index 2f893c0..d042ed3 100644 --- a/TODO.txt +++ b/TODO.txt @@ -22,7 +22,7 @@ Due: January 1, 2023 [x] Refactor man pages to be prefaced with 'telodendria-' [x] Add recipe to td script to upload patches to the Matrix room -[ ] Document send-patch +[x] Document send-patch [~] Convert documentation to man pages [~] Internal API docs [x] Array diff --git a/man/man8/send-patch.8 b/man/man8/send-patch.8 new file mode 100644 index 0000000..e1b4fff --- /dev/null +++ b/man/man8/send-patch.8 @@ -0,0 +1,63 @@ +.Dd $Mdocdate: November 27 2022 $ +.Dt SEND-PATCH 8 +.Os Telodendria Project +.Sh NAME +.Nm send-patch +.Nd Submit a patch file to the Telodendria Patches Matrix room +.Sh SYNOPSIS +.Nm +.Op patch +.Sh DESCRIPTION +.Nm +is a simple shell script for submitting patch files to Telodendria's patch +room for review. Do note that it depends on +.Xr jq 1 +and +.Xr curl 1 , +and so may not work out of the box on some systems. However, these tools are +readily available for most systems. Please consult your package manager's +manual for installing packages. +.Pp +.Nm +takes a single argument, a patch file. It also reads a number of environment +variables, as described in the following section. This script is designed to be +simple; it only pushes files into a hard-coded Matrix room. Thus, as far as +Matrix clients go, this one is a rather minimal one, and that is by design. +.Pp +This script exists so that users who are working on a machine that doesn't have +a Matrix client installed can still submit work to the Telodendria project. The +goal is to make development as accessible as possible. +.Pp +This script only supports password login, so if your homeserver does not +support password login, it will not work. +.Sh ENVIRONMENT +.Pp +.Nm +utilizes the following environment variables: +.Bl -tag -width Ds +.It Ev MXID +Your Matrix ID in the standard format. This is used to connect to your +homeserver to send the message. +.It Ev MXPW +Your Matrix account's password. If not set, you will be prompted for your +password by the script, unless +.Ev ACCESS_TOKEN +is set. +.It Ev ACCESS_TOKEN +If you already have an access token for your account, such as one from an +existing session, then you can set this environment variable to bypass the +password authentication flow. +.El +.Sh FILES +.Pp +.Nm +does utilize the +.Pa .env +file, just like +.Xr td 8 . +Consult that page for the specifics of the +.Pa .env +file. +.Sh SEE ALSO +.Xr td 8 + diff --git a/site/index.html b/site/index.html index c40ca4c..7e5286f 100644 --- a/site/index.html +++ b/site/index.html @@ -175,6 +175,12 @@ Build script and patch generation instructions. +send-patch(8) + +A simple script to send patch files to the Telodendria project. + + + Array(3) Dynamically-sized array API.