(-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]].
(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.
(path & xs)
Joins xs
, returning an absolute path. Respects the "user.dir" property.
Joins `xs`, returning an absolute path. Respects the "user.dir" property.
(rmrf f)
Delete recursively without following symlinks, like rm -rf
Delete recursively without following symlinks, like `rm -rf`
(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.
(with-dir* new-dir f)
Calls f
in the given directory.
See with-dir
.
Calls `f` in the given directory. See [[with-dir]].
(with-no-shutdown & forms)
Runs forms, preventing calls to System/exit
or shutdown-agents
.
Runs forms, preventing calls to `System/exit` or `shutdown-agents`.
(with-no-shutdown* f)
Calls f
, preventing calls to System/exit
or shutdown-agents
.
Calls `f`, preventing calls to `System/exit` or `shutdown-agents`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close