about summary refs log tree commit diff
path: root/users/sterni/mblog/packages.lisp
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-01-29T15·18+0100
committersterni <sternenseemann@systemli.org>2022-02-02T20·47+0000
commit98e4cd032f45ade1c408162ebccd914f31266f9f (patch)
tree6797a088e78f2e46e77ac6f2151d28c5d1c2d8d1 /users/sterni/mblog/packages.lisp
parent6cd1f6f183317fab7661c907686df04bb6b7ade9 (diff)
feat(users/sterni/mblog): implement mblog executable r/3752
This change finally sort of puts the parts together: We take a maildir,
render all its note messages as standalone HTML, extract the attachments
alongside and finally generate a global index page linking all notes.

The new executable and mnote-html are both contained in the same image
and we dispatch the right functionality based on argv[0].

Change-Id: I5a5bdbfaca79199f92e73ea4a2f070fa900d2bc4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5113
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/mblog/packages.lisp')
-rw-r--r--users/sterni/mblog/packages.lisp16
1 files changed, 15 insertions, 1 deletions
diff --git a/users/sterni/mblog/packages.lisp b/users/sterni/mblog/packages.lisp
index aa2fa952f1d0..651dc6f2618d 100644
--- a/users/sterni/mblog/packages.lisp
+++ b/users/sterni/mblog/packages.lisp
@@ -32,6 +32,20 @@
 (defpackage :mblog
   (:use
    :common-lisp
-   :uiop
+   :klatre
+   :who
+   :maildir
    :note)
+  (:export :build-mblog)
+  (:import-from :local-time :universal-to-timestamp)
+  (:import-from :sclf :pathname-as-directory)
+  (:shadowing-import-from :common-lisp :list))
+
+(defpackage :cli
+  (:use
+   :common-lisp
+   :uiop
+   :note
+   :mblog)
+  (:import-from :alexandria :starts-with)
   (:export :main))