Browse code
minor tweaks
fiddlerwoaroof authored on 23/05/2016 23:38:20
Showing 5 changed files
Showing 5 changed files
... | ... |
@@ -32,7 +32,7 @@ |
32 | 32 |
(format s "~w" xml))))) |
33 | 33 |
|
34 | 34 |
(defun parsed-api-call (xml) |
35 |
- (plump-parser:parse (post-to-endpoint xml))) |
|
35 |
+ (plump:parse (post-to-endpoint xml))) |
|
36 | 36 |
|
37 | 37 |
(defmacro define-api-call (name (&rest args) method-name &body elements) |
38 | 38 |
`(defun ,name ,args |
... | ... |
@@ -1,8 +1,11 @@ |
1 | 1 |
;;;; package.lisp |
2 | 2 |
(defpackage #:tempores.packages |
3 |
- (:use #:cl)) |
|
3 |
+ (:use #:cl) |
|
4 |
+ (:export #:*tempores-packages*)) |
|
4 | 5 |
(in-package #:tempores.packages) |
5 | 6 |
|
7 |
+(eval-when (:load-toplevel :compile-toplevel :execute) |
|
8 |
+ (defparameter *tempores-packages* '())) |
|
6 | 9 |
|
7 | 10 |
(defpackage #:generic-equals |
8 | 11 |
(:use #:cl) |
... | ... |
@@ -12,7 +15,7 @@ |
12 | 15 |
(:use #:cl #:anaphora #:alexandria #:serapeum #:fwoar.lisputils #:generic-equals) |
13 | 16 |
(:export #:make-equality #:make-simple-equality #:defmethod-and-inverse |
14 | 17 |
#:define-printer #:quick-equalities)) |
15 |
- |
|
18 |
+(push :tempores.macros *tempores-packages*) |
|
16 | 19 |
|
17 | 20 |
(defpackage #:tempores.parser |
18 | 21 |
(:use #:cl #:anaphora #:alexandria #:serapeum #:fwoar.lisputils #:smug |
... | ... |
@@ -20,10 +23,12 @@ |
20 | 23 |
(:shadow #:parse) |
21 | 24 |
(:export #:parse #:unparse #:date #:records #:client #:ranges #:memo #:hour #:minute #:second |
22 | 25 |
#:day-of-week #:year #:month #:day #:amount #:unit)) |
26 |
+(push :tempores.parser *tempores-packages*) |
|
23 | 27 |
|
24 | 28 |
(defpackage #:tempores.mvc |
25 | 29 |
(:use #:cl #:anaphora #:alexandria #:serapeum #:fwoar.lisputils) |
26 | 30 |
(:export #:model #:view #:controller #:display #:operate #:has-changed)) |
31 |
+(push :tempores.mvc *tempores-packages*) |
|
27 | 32 |
|
28 | 33 |
(defpackage #:tempores |
29 | 34 |
(:use #:cl #:anaphora #:alexandria #:serapeum #:fwoar.lisputils |
... | ... |
@@ -32,12 +37,14 @@ |
32 | 37 |
(:export #:with-tempores-configuration #:pprint-log #:get-log #:tempores |
33 | 38 |
#:*default-time-sheet-file* #:*rate* #:group-by-class #:print-status |
34 | 39 |
#:print-entries #:autocorrect-warning)) |
40 |
+(push :tempores *tempores-packages*) |
|
35 | 41 |
|
36 | 42 |
(defpackage #:tempores.cli |
37 | 43 |
(:use #:cl #:anaphora #:alexandria #:serapeum #:fwoar.lisputils |
38 | 44 |
#:tempores.parser #:tempores #:net.didierverna.clon |
39 | 45 |
#:plambda) |
40 | 46 |
(:import-from #:format-string-builder #:define-message)) |
47 |
+(push :tempores.cli *tempores-packages*) |
|
41 | 48 |
|
42 | 49 |
(in-package #:tempores) |
43 | 50 |
|
... | ... |
@@ -153,7 +153,7 @@ |
153 | 153 |
(extra-space (.optional (.whitespace)))) |
154 | 154 |
(if extra-space |
155 | 155 |
(error 'invalid-whitespace :failed-chunk extra-space) |
156 |
- (.fail)))) |
|
156 |
+ (.fail)))) |
|
157 | 157 |
|
158 | 158 |
(defun .initial-space () |
159 | 159 |
(.or (.extra-whitespace) |
... | ... |
@@ -282,10 +282,6 @@ |
282 | 282 |
(defun .parse-all-records () |
283 | 283 |
(.prog1 (.date-records) (.not (.item)))) |
284 | 284 |
|
285 |
-#|(defun parse (data)|# |
|
286 |
-#| (alet (run (.date-records) data)|# |
|
287 |
-#| (values (caar it) (cdar it))))|# |
|
288 |
- |
|
289 | 285 |
;; This will help make sure everything is consumed when |
290 | 286 |
;; we don't care about the parser's output. |
291 | 287 |
(defun cdar-equal (a b) (== (cdar a) (cdar b))) |
... | ... |
@@ -173,6 +173,8 @@ |
173 | 173 |
(flag :long-name "post-hours" |
174 | 174 |
:description "Post hours to freshbooks (requires manual setup of Freshbooks keys)")) |
175 | 175 |
(group (:header "Self-test options") |
176 |
+ (flag :long-name "dependencies" |
|
177 |
+ :description "Graph the dependencies of this project") |
|
176 | 178 |
(flag :long-name "run-tests" |
177 | 179 |
:description "Run the tests") |
178 | 180 |
(enum :long-name "output-style" |
... | ... |
@@ -207,6 +209,7 @@ |
207 | 209 |
(cond |
208 | 210 |
((getopt :long-name "help") (help)) |
209 | 211 |
((getopt :long-name "version") (show-version)) |
212 |
+ ((getopt :long-name "dependencies") (format t (tempores.package-grapher::graph-tempores-packages))) |
|
210 | 213 |
((getopt :long-name "post-hours") (let ((*print-pretty* nil)) |
211 | 214 |
(loop for item in (tempores.freshbooks::post-time-entries-main) |
212 | 215 |
do (format t "Posted an entry") |