get running as global script working

This commit is contained in:
Travis Shears 2025-06-13 09:56:22 +02:00
parent 589e48304f
commit e2258daafa
3 changed files with 17 additions and 4 deletions

7
snippets_cms.bb Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bb
(ns snippets-cms
(:require [cli-cms.main]))
(when (= *file* (System/getProperty "babashka.file"))
(apply cli-cms.main/-main *command-line-args*))