{"id":17003857,"url":"https://github.com/cldwalker/bb-clis","last_synced_at":"2025-03-22T16:30:47.107Z","repository":{"id":66242405,"uuid":"238221047","full_name":"cldwalker/bb-clis","owner":"cldwalker","description":"Babashka CLIs","archived":false,"fork":false,"pushed_at":"2024-01-10T02:49:07.000Z","size":383,"stargazers_count":54,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T13:32:10.994Z","etag":null,"topics":["babashka","cli","clojure"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cldwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-04T14:07:22.000Z","updated_at":"2024-09-18T13:50:20.000Z","dependencies_parsed_at":"2024-01-10T05:02:21.086Z","dependency_job_id":"4b9987fc-054c-4581-b0e7-44148382e0e7","html_url":"https://github.com/cldwalker/bb-clis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fbb-clis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fbb-clis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fbb-clis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fbb-clis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cldwalker","download_url":"https://codeload.github.com/cldwalker/bb-clis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986310,"owners_count":20542993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babashka","cli","clojure"],"created_at":"2024-10-14T04:32:57.559Z","updated_at":"2025-03-22T16:30:46.723Z","avatar_url":"https://github.com/cldwalker.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nAn assortment of handy [Babashka](https://github.com/borkdude/babashka) CLIs:\nscripts and tasks. scripts strive to be compatible with Clojure.\n\n## Prerequisites\n\n[Babashka](https://github.com/borkdude/babashka#installation) \u003e= 1.0.166 is required.\n\n## Tasks\n\nbb.edn contains global tasks i.e. tasks that are useful in any directory or\nproject. To run these tasks from any directory, clone this repo and then use a\nshell function to reference the cloned directory:\n\n```sh\nfunction bbg() { BABASHKA_EDN=/path/to/this-repo/bb.edn bb --config\n/path/to/this-repo/bb.edn $@ }\n```\n\nRun `bbg tasks` to see all the available tasks.\n\n## Scripts\n\n### Setup\n\nScripts/commands/executables are located in `bin/`. To use an individual script, simply copy\nand use it:\n\n```sh\n$ curl -o bb-github-repo https://raw.githubusercontent.com/cldwalker/bb-clis/master/bin/bb-github-repo\n$ chmod +x bb-github-repo\n$ ./bb-github-repo -h\n```\n\nIf you want to use all scripts in this repo, then put `bin/` on `$PATH`:\n\n```sh\n$ git clone https://github.com/cldwalker/bb-clis\n$ export PATH=$PATH:$HOME/path/to/bb-clis/bin\n```\n\n### Usage\n\nSee [scripts.md](doc/scripts.md) which provides useful examples of several scripts.\n\n## Development\n\nCode is organized as follows:\n* `src/cldwalker/bb-clis/tasks/` - Namespaces that are mainly run within babashka tasks\n* `src/cldwalker/bb-clis/cli/` - Namespaces that useful to scripts and possibly tasks.\n* `src/cldwalker/bb-clis/util/` - Namespaces that are useful to any clojure or bb program, not just CLIs.\n\n## Misc bb tips\n\n### Preloads\n\nBabashka supports `$BABASHA_PRELOADS` which allows arbitrary clojure to be run at the start of each invocation. This is handy for loading one's preferred set of vars and namespaces, especially when paired with an alias. For example, `alias bbp=\"BABASHKA_PRELOADS='(load-file (str (System/getenv \\\"HOME\\\") \\\"/path/to/this-repo/preloads.clj\\\"))' bb\"`\n\nPreloaded fns like `pprint` are then available on the commandline:\n\n```sh\nbbp '(-\u003e\u003e (System/getenv) (into {}) pprint)'\n```\n## License\nSee LICENSE.md\n\n## Additional Links\n\n* For more bb setup and aliases, see [my dotfiles repo](https://github.com/cldwalker/dotfiles/search?q=bb\u0026unscoped_q=bb)\n* See https://github.com/borkdude/babashka/blob/master/doc/examples.md for additional babashka cmd examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fbb-clis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcldwalker%2Fbb-clis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fbb-clis/lists"}