aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-05-11 00:02:27 +0200
committerTeddy Wing2022-05-11 00:02:27 +0200
commit32c85b72d93807c2f01d618d91519af043a39285 (patch)
tree2583b61152898eb303e34ca817be4da8aa2803eb
parent754002c3b502d6f2beb15e979b1cb22af3b11a14 (diff)
downloadwajir-32c85b72d93807c2f01d618d91519af043a39285.tar.bz2
Makefile: Generate man page from Asciidoc
-rw-r--r--Makefile9
-rw-r--r--doc/wajir.1102
2 files changed, 111 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 03dbb2c..b02e73d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
LISP ?= sbcl
+MAN_PAGE := doc/wajir.1
+
.PHONY: build
build: wajir
@@ -9,3 +11,10 @@ wajir: wajir.asd lib/* src/*.lisp
--eval '(ql:quickload :wajir)' \
--eval '(asdf:make :wajir)' \
--eval '(quit)'
+
+
+.PHONY: doc
+doc: $(MAN_PAGE)
+
+$(MAN_PAGE): doc/wajir.1.txt
+ a2x --no-xmllint --format manpage $<
diff --git a/doc/wajir.1 b/doc/wajir.1
new file mode 100644
index 0000000..5d82cb4
--- /dev/null
+++ b/doc/wajir.1
@@ -0,0 +1,102 @@
+'\" t
+.\" Title: wajir
+.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
+.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
+.\" Date: 05/11/2022
+.\" Manual: \ \&
+.\" Source: \ \&
+.\" Language: English
+.\"
+.TH "WAJIR" "1" "05/11/2022" "\ \&" "\ \&"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
+.SH "NAME"
+wajir \- Watch Jira issues
+.SH "SYNOPSIS"
+.sp
+.nf
+\fIwajir\fR [\-\-login <login>] [\-\-token <token>] [\-\-endpoint <endpoint>]
+ [\-\-sendmail <command>] [\-\-email\-to <address>] [\-v | \-\-verbose]
+ [\-h | \-\-help] [\-V | \-\-version] <JQL>
+.fi
+.SH "DESCRIPTION"
+.sp
+Automatically watch Jira issues\&. Given a JQL query, the currently authenticated user will be added as a watcher on all resulting issues\&.
+.sp
+For example, this JQL query finds all issues in the project "FAKE" that are not watched by the current user:
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+project = "FAKE" AND watcher != currentUser() ORDER BY created ASC
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+Passing the above JQL to Wajir will cause the current user to watch all unwatched issues in the "FAKE" project\&.
+.sp
+If the \fB\-\-sendmail\fR and \fB\-\-email\-to\fR options are provided, an email containing the issue summary, description, and a few other metadata fields will be sent using the program given in \fB\-\-sendmail\fR to the \fB\-\-email\-to\fR address\&.
+.SH "OPTIONS"
+.PP
+\-\-login
+.RS 4
+Jira login email address\&.
+.RE
+.PP
+\-\-token
+.RS 4
+Jira API token\&. Obtained from:
+https://id\&.atlassian\&.com/manage\-profile/security/api\-tokens
+.RE
+.PP
+\-\-endpoint
+.RS 4
+The team\-specific Atlassian host (e\&.g\&.
+\fBexample\&.atlassian\&.net\fR)\&.
+.RE
+.PP
+\-\-sendmail
+.RS 4
+The command named in this argument will be exec\(cqed and given an email on its standard input\&. This will typically be a Mail Transfer Agent or Mail Delivery Agent\&. If set, the
+\fB\-\-email\-to\fR
+option must also be set\&.
+.RE
+.PP
+\-\-email\-to
+.RS 4
+Recipient email address that \(oqissue created\(cq emails will be sent to\&.
+.RE
+.PP
+\-v, \-\-verbose
+.RS 4
+Turn on verbose output\&.
+.RE
+.PP
+\-h, \-\-help
+.RS 4
+Print usage help\&.
+.RE
+.PP
+\-V, \-\-version
+.RS 4
+Print the program version\&.
+.RE