Browse code
feat: add usage information
Edward authored on 30/11/2020 01:59:48
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -1,3 +1,7 @@ |
1 |
+(defpackage :cl-nntp.archive-lispworks |
|
2 |
+ (:use :cl ) |
|
3 |
+ (:export )) |
|
4 |
+(in-package :cl-nntp.archive-lispworks) |
|
1 | 5 |
|
2 | 6 |
(defun archive-article (client message group target) |
3 | 7 |
(let* ((target (parse-namestring target)) |
... | ... |
@@ -31,3 +35,15 @@ |
31 | 35 |
'archiver |
32 | 36 |
args)) |
33 | 37 |
'vector)) |
38 |
+ |
|
39 |
+ |
|
40 |
+(defmacro comment (&body body) |
|
41 |
+ (declare (ignore body)) |
|
42 |
+ nil) |
|
43 |
+ |
|
44 |
+(comment ;; example-usage |
|
45 |
+ (defparameter *workers* (start-workers 16 "news.gmane.io" "gmane.lisp.lispworks.general" "/tmp/gmane-archive/")) |
|
46 |
+ |
|
47 |
+ (loop for x = 0 then (mod (1+ x) (length *workers*)) |
|
48 |
+ for msg in (cl-nntp:listgroup "gmane.lisp.lispworks.general" *client*) |
|
49 |
+ collect (mp:process-send (elt *workers* x) msg))) |