Liking cljdoc? Tell your friends :D

trident.cli.util


-mainclj

(-main dir entry-point & args)

Launch other commands using with-no-shutdown and with-dir.

Launch other commands using [[with-no-shutdown]] and [[with-dir]].
sourceraw docstring

chdirclj

(chdir dir)

Uses the Java Native Runtime to actually change the current working directory. Also updates the "user.dir" system property.

Uses the Java Native Runtime to **actually** change the current working directory.
Also updates the "user.dir" system property.
sourceraw docstring

maybe-slurpclj

(maybe-slurp f)

Attempts to slurp f, returning nil on failure

Attempts to slurp `f`, returning nil on failure
sourceraw docstring

pathclj

(path & xs)

Joins xs, returning an absolute path. Respects the "user.dir" property.

Joins `xs`, returning an absolute path. Respects the "user.dir" property.
sourceraw docstring

read-depsclj

(read-deps)
source

rmrfclj

(rmrf f)

Delete recursively without following symlinks, like rm -rf

Delete recursively without following symlinks, like `rm -rf`
sourceraw docstring

shclj

(sh & args)

Runs a shell command.

Returns the output if successful; otherwise, throws an exception.

Runs a shell command.

Returns the output if successful; otherwise, throws an exception.
sourceraw docstring

sppitclj

(sppit file x)

pprints x to file

pprints `x` to `file`
sourceraw docstring

with-dircljmacro

(with-dir dir & forms)

Runs forms in the given directory.

Changes the directory using several methods:

  • clojure.java.shell/with-sh-dir
  • me.raynes.fs/with-cwd
  • chdir

This is NOT thread-safe: the directory will be changed for the entire process while the forms are running.

Runs `forms` in the given directory.

Changes the directory using several methods:
 - `clojure.java.shell/with-sh-dir`
 - `me.raynes.fs/with-cwd`
 - [[chdir]]

This is NOT thread-safe: the directory will be changed for the entire
process while the forms are running.
sourceraw docstring

with-dir*clj

(with-dir* new-dir f)

Calls f in the given directory. See with-dir.

Calls `f` in the given directory.
See [[with-dir]].
sourceraw docstring

with-no-shutdowncljmacro

(with-no-shutdown & forms)

Runs forms, preventing calls to System/exit or shutdown-agents.

Runs forms, preventing calls to `System/exit` or `shutdown-agents`.
sourceraw docstring

with-no-shutdown*clj

(with-no-shutdown* f)

Calls f, preventing calls to System/exit or shutdown-agents.

Calls `f`, preventing calls to `System/exit` or `shutdown-agents`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close