aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-08-19 19:52:35 -0500
committerColin Okay <colin@cicadas.surf>2022-08-19 19:52:35 -0500
commitb2e05b5fd51a7668717fcfd2cb80476da78562ab (patch)
tree740253105eb15fff8631faa551188f86056c29d9
parent521acb131680f8c0995e00260cc073b692d8c33d (diff)
[add] generate client system and code
-rw-r--r--generate-client.lisp11
-rw-r--r--oneliners.cli.asd18
2 files changed, 26 insertions, 3 deletions
diff --git a/generate-client.lisp b/generate-client.lisp
new file mode 100644
index 0000000..f7ada86
--- /dev/null
+++ b/generate-client.lisp
@@ -0,0 +1,11 @@
+;;;; generate-client.lisp
+
+(defpackage :oneliners.cli.genclient
+ (:use :cl))
+
+(in-package :oneliners.cli.genclient)
+
+(defun run ()
+ (lazybones-client:generate-client-system
+ (asdf:system-source-directory :oneliners.cli)
+ (lazybones:app 'oneliners.api::oneliners.api)))
diff --git a/oneliners.cli.asd b/oneliners.cli.asd
index 465df73..449f32f 100644
--- a/oneliners.cli.asd
+++ b/oneliners.cli.asd
@@ -1,5 +1,7 @@
+
+
(defsystem "oneliners.cli"
- :version "alpha-0.7.1"
+ :version "0.8.0"
:author "Colin Okay"
:license "AGPLv3"
:depends-on ("trivial-clipboard"
@@ -27,7 +29,7 @@
choice.")
(defsystem "oneliners.cli/app"
- :version "alpha-0.7.1"
+ :version "0.8.0"
:author "Colin Okay"
:license "AGPLv3"
:depends-on ("clingon"
@@ -51,4 +53,14 @@
:build-pathname "bin/ol"
:entry-point "oneliners.cli.app::main")
-
+(defsystem "oneliners.cli/generate-client"
+ :version "0.0.1"
+ :author "Colin Okay"
+ :license "AGPLv3"
+ :depends-on ("oneliners.api" "lazybones-client")
+ :components ((:file "generate-client"))
+ :description "Generates the client library system for the
+ api. Creates a system called oneliners.api-client in this
+ directory. Uses the most recent version of the api to do it. Meant
+ to be built rebuilt every time the server changes. Users building
+ the client themselves should not have to build this." )