diff options
author | Colin Okay <okay@toyful.space> | 2022-03-26 11:55:32 -0500 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2022-03-26 11:55:32 -0500 |
commit | 6062d8603cf606ac538e1cb952d4108925a7c83c (patch) | |
tree | 3018769dfe6963f73f3e943c81eaa665b0f6bd3a | |
parent | d81bcd3d57b51f95a27f40bb2ba9264d5d805b69 (diff) |
[bugfix] preamble was deleted, [add]generate-client-functions-for-app
-rw-r--r-- | lazybones-client.lisp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lazybones-client.lisp b/lazybones-client.lisp index 87f5e90..955ed6d 100644 --- a/lazybones-client.lisp +++ b/lazybones-client.lisp @@ -166,6 +166,9 @@ makes a request to the endpoint EP." (defun client-lisp-file-name (app) (format nil "~a.lisp" (string-downcase (app-client-package-name app)))) +(defun generate-client-functions-for-app (app) + (mapcar 'generate-defun-for-endpoint (lazybones::app-endpoints app))) + (defun generate-client-system (directory app) (assert (uiop:directory-exists-p directory)) @@ -177,10 +180,9 @@ makes a request to the endpoint EP." (with-output-to-string (*standard-output*) (princ (generate-defpackage-for-client-of-app app)) (princ #\newline) (princ #\newline) - (princ +preamble+) (princ #\newline) (princ #\newline) - (dolist (form (generate-client-functions-for-app app)) - (print form) + (dolist (defun-string (generate-client-functions-for-app app)) + (princ defun-string) (princ #\newline) (princ #\newline))) (merge-pathnames (client-lisp-file-name app) directory)) :ok) |