Fork me on GitHub
#babashka
<
2022-07-16
>
vlad_poh21:07:27

Anyone have a bb.edn tasks file that sends out emails? More precisely how do i load a pod in babashka tasks?

borkdude21:07:33

@kbosompem you can do it like this:

{:pods {tzzh/mail {:version "0.0.2"}}}

💥 1
vlad_poh21:07:29

does it come before or after requires? I’m getting the following

;; deps
3: 
4: (ns user-92a6d37b-e0c0-4f41-a6ab-8f6460e84c53 (:require [babashka.fs :as fs] [babashka.pods] [pod.tzzh.mail :as m]))
                                                 ^--- Could not find namespace: pod.tzzh.mail.
5: (require '[babashka.tasks #_#_:refer [log]])

1
borkdude21:07:05

On the top level actually, not within :tasks

👍 1