Skip to content

Commit c991e45

Browse files
committed
Update README: CHACHA_USER, my-last-run, my-runs, current-user
1 parent 61b0a84 commit c991e45

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,18 +390,32 @@ HikariCP connection pool included. Same schema, same map shapes — swap backend
390390

391391
### User attribution
392392

393-
Runs automatically capture who created them:
393+
Runs automatically capture who created them. Set `CHACHA_USER` in your shell profile:
394+
395+
```bash
396+
export CHACHA_USER=maria
397+
```
398+
399+
Falls back to the system `user.name` if not set.
394400

395401
```clojure
396-
(ml/with-run {:experiment "iris"} ...)
397-
(:created-by (ml/last-run))
398-
;; => "maria" (auto-captured from system user)
402+
;; My runs only
403+
(ml/my-last-run)
404+
(ml/my-runs {:experiment "iris"})
405+
406+
;; Everyone's runs
407+
(ml/last-run)
408+
(ml/runs)
399409

400-
;; Filter by person
410+
;; Filter by any user
401411
(ml/runs {:created-by "tomas"})
412+
413+
;; Check who you are
414+
(ml/current-user)
415+
;; => "maria"
402416
```
403417

404-
Override with `:created-by` in `start-run!` opts if needed.
418+
Override per-run with `:created-by` in `start-run!` opts if needed.
405419

406420
### Run cleanup
407421

0 commit comments

Comments
 (0)