clojure-cli

September 4, 2022 ยท View on GitHub

Clojure CLI for Windows and all the other platforms.

Usage

> cargo install --git https://github.com/andelf/clojure-cli.git

> clojure

> clojure -Sverbose -Ttools

> clojure -Sdeps '{:deps {cljfmt/cljfmt {:mvn/version "0.9.0"}}}' -m cljfmt.main check

Rationale

clj on Windows is defined as PowerShell functions.

  • Cannot be used as binary commands (use with yarn/npm/gulp/etc.)
  • Not compatible with pwsh 7.0+ (repl quits at once)
  • Cannot be used in cmd.exe easily (require call to powershell.exe)
  • Difficult to handle escape sequences in cmd/powershell