Skip to content

A cljc that provides cursors, like reagent cursors, but for plain atoms.

License

Notifications You must be signed in to change notification settings

conjurernix/cursor

Repository files navigation

drbuchkov/cursor

A portable library for Clojure that provides cursors, which are atom-like objects created out of a portion of an existing atom.

Usage

FIXME: write usage documentation!

Invoke a library API function from the command-line:

$ clojure -X drbuchkov.cursor/foo :a 1 :b '"two"'
{:a 1, :b "two"} "Hello, World!"

Run the project's tests (they'll fail until you edit them):

$ clojure -T:build test

Run the project's CI pipeline and build a JAR (this will fail until you edit the tests to pass):

$ clojure -T:build ci

This will produce an updated pom.xml file with synchronized dependencies inside the META-INF directory inside target/classes and the JAR in target. You can update the version (and SCM tag) information in generated pom.xml by updating build.clj.

Install it locally (requires the ci task be run first):

$ clojure -T:build install

Deploy it to Clojars -- needs CLOJARS_USERNAME and CLOJARS_PASSWORD environment variables (requires the ci task be run first):

$ clojure -T:build deploy

Your library will be deployed to net.clojars.drbuchkov/cursor on clojars.org by default.

License

Copyright © 2023 Nikolaspafitis

EPLv1.0 is just the default for projects generated by deps-new: you are not required to open source this project, nor are you required to use EPLv1.0! Feel free to remove or change the LICENSE file and remove or update this section of the README.md file!

Distributed under the Eclipse Public License version 1.0.

About

A cljc that provides cursors, like reagent cursors, but for plain atoms.

Resources

License

Stars

Watchers

Forks

Packages

No packages published