Wes Morgan
55c5f879d0
Fix some minor formatting issues
2022-03-23 09:05:50 -06:00
Wes Morgan
fd86ecfffa
Throw error when not one of version or path
...
...with qualified symbol pod-spec
2022-03-23 09:05:30 -06:00
Wes Morgan
f2cfdff899
Feature: declarative pods ( #44 )
...
* Use non-deprecated string->int method
* Remove unused next-pod-id
* Support declarative pods loaded on require
* Wait for pod shutdown in load-pod-metadata
* Type hint a File return value to avoid reflection
* Return pod metadata instead of putting in ctx
* Fix local pod loading & support :cache opt
* Document :pods in bb.edn
* Cache local pods metadata in project .babashka dir
* Pass pod resolve-fn to describe->metadata
Not only was this just a bug, but the accidental reference to clojure.core/resolve ballooned the final bb image size to >110MB!
2022-03-23 12:26:58 +01:00
Michiel Borkent
5fbf1d7b04
Revert "Feature: declarative pods loaded at require time ( #43 )"
...
This reverts commit 8f059da7e6 .
2022-03-22 14:00:24 +01:00
Wes Morgan
8f059da7e6
Feature: declarative pods loaded at require time ( #43 )
...
* Use non-deprecated string->int method
* Remove unused next-pod-id
* Support declarative pods loaded on require
* Wait for pod shutdown in load-pod-metadata
* Type hint a File return value to avoid reflection
* Return pod metadata instead of putting in ctx
* Fix local pod loading & support :cache opt
* Document :pods in bb.edn
* Cache local pods metadata in project .babashka dir
2022-03-21 20:46:57 +01:00
Paula Gearon
973c4e5c9e
[ #38 ] Support metadata on vars
2021-10-15 17:43:12 +02:00
Michiel Borkent
de4c3610c9
minor
2021-05-19 23:48:14 +02:00
Michiel Borkent
0f31e57977
Rename
2021-05-19 21:31:51 +02:00
Michiel Borkent
37326045aa
Add support for default transit handler #36
2021-05-19 21:19:18 +02:00
Michiel Borkent
6214f06146
Implicit pod-id
2021-05-19 20:34:38 +02:00
Michiel Borkent
05ecf97127
Scope transit read and write handlers to pod ids
2021-05-19 17:20:55 +02:00
Michiel Borkent
1fdd8231bd
[ #33 ] Allow pods to register transit handlers for reading and writing
2021-05-17 11:41:51 +02:00
Michiel Borkent
0bffce3573
Write to output before delivering result
2021-01-03 18:00:42 +01:00
Michiel Borkent
65f1d280af
[ babashka/pod-registry#4 ] Fix issue with unzipping file
2020-12-29 13:57:09 +01:00
Michiel Borkent
280f99888c
Pod resolver tests. See borkdude/babashka#690
2020-12-29 11:15:12 +01:00
Michiel Borkent
22f200ef30
Pod resolver. See borkdude/babashka#690
2020-12-27 13:55:50 +01:00
Michiel Borkent
e71ae00d03
Get rid of :needs-ctx
2020-11-18 17:44:01 +01:00
Michiel Borkent
a0418d6622
Tweak
2020-10-21 17:28:11 +02:00
Michiel Borkent
02cef05574
Handle socket exception gracefully.
2020-10-21 16:53:52 +02:00
Michiel Borkent
df334946b9
Make unload and invoke take ret val of load-pod
2020-10-21 14:10:31 +02:00
Michiel Borkent
a522cb834f
Tweak socket config
2020-10-21 13:58:59 +02:00
Michiel Borkent
a8268683e0
Fix NPE
2020-10-15 17:54:10 +02:00
Michiel Borkent
b81d8b30bf
Fix destroy
2020-10-15 17:19:44 +02:00
Michiel Borkent
e1ab6a00e5
[ #21 ] Support transit+json
2020-10-15 11:27:23 +02:00
Michiel Borkent
dd57413d27
[ #2 ] Tests
2020-10-15 10:55:22 +02:00
Michiel Borkent
0ecf6d6d40
rm debug
2020-10-14 16:52:36 +02:00
Michiel Borkent
8732bc810b
[ #2 ] socket support
2020-10-14 16:44:43 +02:00
Michiel Borkent
225f9239d8
[ #2 ] Experimental socket support
2020-10-13 22:34:01 +02:00
Michiel Borkent
7f804baca8
[ #2 ] Experimental socket support
2020-10-13 11:08:26 +02:00
Michiel Borkent
c1530bd07e
[ #20 ] Ensure ns-map exists for code-only namespaces
2020-09-30 12:24:04 +02:00
Michiel Borkent
9036af1957
Add logging on EDN or JSON read error
2020-06-01 17:57:05 +02:00
Michiel Borkent
4b8fb02c7d
[ #15 ] load-ns op
2020-05-26 16:30:46 +02:00
Michiel Borkent
62e0a1b074
[ #11 ] reader functions
2020-05-22 12:45:50 -03:00
Michiel Borkent
1ff8316d02
Simplify
2020-05-21 12:38:01 -03:00
Michiel Borkent
c59063e7dc
Rid ordered dependency
2020-05-21 12:35:34 -03:00
Michiel Borkent
8a420bdf84
Fix ordering of vars. Fix #10 .
2020-05-21 12:28:14 -03:00
Michiel Borkent
9d4b853e8f
tweaks
2020-05-20 22:56:32 +02:00
Michiel Borkent
5a2f68c1ea
invoke sync
2020-05-20 21:57:22 +02:00
Michiel Borkent
3b90c4ba59
return map from load-pod
2020-05-20 20:23:19 +02:00
Michiel Borkent
3e5637b33f
[ #3 ] unload-pod
2020-05-20 20:11:46 +02:00
Michiel Borkent
990d804199
[ #6 ] make callbacks more user friendly
2020-05-20 17:12:23 +02:00
Michiel Borkent
fb6e739aee
Free from core.async
2020-05-20 13:44:29 +02:00
Michiel Borkent
57b86f301d
[ #6 ] refactor handlers
2020-05-20 13:28:04 +02:00
Michiel Borkent
a673ab4c8a
[ #6 ] async pod vars using low level invoke ( #7 )
2020-05-20 11:53:10 +02:00
Michiel Borkent
8f16139ab6
Support code in var section
2020-05-17 15:25:04 +02:00
Michiel Borkent
016e20dc52
Fix nil return value
2020-05-16 23:42:00 +02:00
Michiel Borkent
ed996f6f41
Don't keep reading on EOF
2020-05-12 11:42:42 +02:00
Michiel Borkent
630161441b
load-pod returns nil for now
2020-05-12 11:12:31 +02:00
Michiel Borkent
f5652b9749
simplify env var name
2020-05-09 19:31:25 +02:00
Michiel Borkent
7fea4149c9
set env var
2020-05-09 17:30:20 +02:00