Skip to content

Commit 7c3fe36

Browse files
authored
Update README.md
1 parent 8cf25a2 commit 7c3fe36

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

README.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ Here are some utility scripts I wrote for myself. At first I wrote the scripts i
55
### [Scripts](#scripts) included:
66
1. [accountsof](#accountsof) - outputs the name of all accounts used in a [Ledger](https://github.com/ledger/ledger) journal file
77
2. [cljminimal](#cljminimal) - creates an ultra barebones deps.edn [clj](https://clojure.org/guides/deps_and_cli) project for quick hacking
8-
3. [jrun](#jrun) - single file Java runner
9-
4. [keepbooks](#keepbooks) - simple transaction entry helper for [Ledger](https://github.com/ledger/ledger) CLI accounting. Supports interactive entry.
10-
5. [on-modify-log](#on-modify-log) - a [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) hook to log the latest modified task
11-
6. [projectsof](#projectsof) - finds directories of certain project types
12-
7. [resumetask](#resumetask) - resumes latest modified [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) task
13-
8. [startnewtask](#startnewtask) - creates and starts a new [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) task
14-
9. [stoptasks](#stoptasks) - stops all active [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) tasks
15-
10. [taskinfo](#taskinfo) - prints the attribute of a [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) task
8+
3. [depo](#depo) - adds dependencies to Clojure projects. Supports `deps.edn`,`project.clj`,`shadow-cljs.edn`.
9+
4. [jrun](#jrun) - single file Java runner
10+
5. [keepbooks](#keepbooks) - simple transaction entry helper for [Ledger](https://github.com/ledger/ledger) CLI accounting. Supports interactive entry.
11+
6. [on-modify-log](#on-modify-log) - a [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) hook to log the latest modified task
12+
7. [projectsof](#projectsof) - finds directories of certain project types
13+
8. [resumetask](#resumetask) - resumes latest modified [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) task
14+
9. [startnewtask](#startnewtask) - creates and starts a new [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) task
15+
10. [stoptasks](#stoptasks) - stops all active [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) tasks
16+
11. [taskinfo](#taskinfo) - prints the attribute of a [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) task
1617

1718
## Installation
1819
You need to first [install Babashka](https://github.com/babashka/babashka#quickstart).
@@ -34,6 +35,24 @@ Outputs the names of all the accounts used in a [Ledger](https://github.com/ledg
3435
### [cljminimal](./cljminimal.clj)
3536
A script to create an ultraminimal clj project with an empty deps.edn and a singular hello world main function. To use, simply call `cljminimal my-minimal-clj-project` and a project called `my-minimal-clj-project` will be created for you. Mainly used for quick hacking and throwaway prototyping.
3637

38+
### [depo](./depo.clj)
39+
Adds dependencies to Clojure projects. To use, run the script at the root of a project containing a `deps.edn`, `project.clj` or `shadow-cljs.edn` file. If multiple config files are present, the first config file in the order of `deps`,`project`,`shadow-cljs` will be selected.
40+
#### Usage
41+
```sh
42+
depo add reagent
43+
# Added [reagent "1.2.0"]
44+
```
45+
If multiple config files are present, you can use `-f` to specify which file to add a dependency to.
46+
```sh
47+
depo add reagent -f deps.edn
48+
# Added {reagent/reagent {:mvn/version 1.2.0}}
49+
```
50+
You can also specify a version.
51+
```sh
52+
depo add reagent 1.1.0
53+
# Added [reagent "1.1.0"]
54+
```
55+
3756
### [jrun](./jrun.clj)
3857
Compiles and runs a single java file. Mainly used for quick iteration of ideas. For example, you can run it in Vim with `:!jrun App.java` and see the output in a Vim buffer without leaving your current buffer.
3958
#### Usage

0 commit comments

Comments
 (0)