From a8319d42c167b6ceb30c74dd2ba4fdd1d8da7044 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 20 Mar 2021 20:47:21 +0100 Subject: [PATCH] main --- bb.edn | 4 ++++ test-resources/task_scripts/tasks.clj | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 bb.edn create mode 100644 test-resources/task_scripts/tasks.clj diff --git a/bb.edn b/bb.edn new file mode 100644 index 00000000..1a5d83df --- /dev/null +++ b/bb.edn @@ -0,0 +1,4 @@ +{:paths ["test-resources/task_scripts"] + :tasks {:main-task {:task/type :main + :main tasks ;; this calls tasks/-main + :args [1 2 3]}}} diff --git a/test-resources/task_scripts/tasks.clj b/test-resources/task_scripts/tasks.clj new file mode 100644 index 00000000..234af891 --- /dev/null +++ b/test-resources/task_scripts/tasks.clj @@ -0,0 +1,8 @@ +(ns tasks) + +(defn -main + "Usage: just pass some args. + + This is the main main function in this namespace." + [& args] + args)