Liking cljdoc? Tell your friends :D

leiningen.core.utils


ancestor?clj

(ancestor? a b)

Is a an ancestor of b?

Is a an ancestor of b?
raw docstring

build-urlclj

(build-url url)

Creates java.net.URL from string

Creates java.net.URL from string
raw docstring

create-tmpdirclj

(create-tmpdir parent prefix permissions)

Creates a temporary directory in parent (something clojure.java.io/as-path can handle) with the specified permissions string (something PosixFilePermissions/asFileAttribute can handle i.e. "rw-------") and returns its Path.

Creates a temporary directory in parent (something clojure.java.io/as-path
can handle) with the specified permissions string (something
PosixFilePermissions/asFileAttribute can handle i.e. "rw-------") and
returns its Path.
raw docstring

errorclj

(error & args)

filter-valsclj

(filter-vals m pred)

Like filter, but for values over a map: If pred is satisfied on a value in m, then its entry is preserved, otherwise it is removed.

Like filter, but for values over a map: If pred is satisfied on a value in m,
then its entry is preserved, otherwise it is removed.
raw docstring

get-archclj

(get-arch)

Returns a keyword naming the host architecture

Returns a keyword naming the host architecture
raw docstring

get-osclj

(get-os)

Returns a keyword naming the host OS.

Returns a keyword naming the host OS.
raw docstring

last-distinctclj

(last-distinct coll)

Like distinct, but retains the last version instead of the first version of a duplicate.

Like distinct, but retains the last version instead of the first version of a
duplicate.
raw docstring

last-distinct-byclj

(last-distinct-by f coll)

Returns a lazy sequence of the elements of coll, removing any elements that return duplicate values when passed to a function f. Only the last element that is a duplicate is preserved.

Returns a lazy sequence of the elements of coll, removing any
elements that return duplicate values when passed to a function f.
Only the last element that is a duplicate is preserved.
raw docstring

map-valsclj

(map-vals m f & args)

Like 'update', but for all values in a map.

Like 'update', but for all values in a map.
raw docstring

mkdirsclj

(mkdirs f)

Make a given directory and its parents, but throw an Exception on failure.

Make a given directory and its parents, but throw an Exception on failure.
raw docstring

ns-exists?clj

(ns-exists? namespace)

platform-nullsinkclj

(platform-nullsink)

Returns a file destination that will discard output.

Returns a file destination that will discard output.
raw docstring

read-fileclj

(read-file file)

Returns the first Clojure form in a file if it exists.

Returns the first Clojure form in a file if it exists.
raw docstring

read-git-headclj

(read-git-head git-dir)

Reads the value of HEAD and returns a commit SHA1, or nil if no commit exist.

Reads the value of HEAD and returns a commit SHA1, or nil if no commit
exist.
raw docstring

rebind-io!clj

(rebind-io!)

rebound-io?clj


relativizeclj

(relativize base path)

Makes the filepath path relative to base. Assumes base is an ancestor to path, and that the path contains no '..'.

Makes the filepath path relative to base. Assumes base is an ancestor to
path, and that the path contains no '..'.
raw docstring

require-resolveclj

(require-resolve sym)
(require-resolve ns sym)

Resolve a fully qualified symbol by first requiring its namespace.

Resolve a fully qualified symbol by first requiring its namespace.
raw docstring

resolve-git-dirclj

(resolve-git-dir project)

strip-properties-commentsclj

(strip-properties-comments s)

Takes a string containing serialized java.util.Properties and removes all the comment lines (those beginning with #)

Takes a string containing serialized java.util.Properties
and removes all the comment lines (those beginning with #)
raw docstring

symlink?clj

(symlink? file)

Checks if a File is a symbolic link or points to another file.

Checks if a File is a symbolic link or points to another file.
raw docstring

with-system-err-strcljmacro

(with-system-err-str & body)

Like with-out-str, but for System/err.

Like with-out-str, but for System/err.
raw docstring

with-system-out-strcljmacro

(with-system-out-str & body)

Like with-out-str, but for System/out.

Like with-out-str, but for System/out.
raw docstring

with-write-permissionscljmacro

(with-write-permissions path & body)

Runs body only if path is writeable, or - if it does not already exist - can be created.

Runs body only if path is writeable, or - if it does not already exist - can
be created.
raw docstring

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

× close