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?
sourceraw docstring

build-urlclj

(build-url url)

Creates java.net.URL from string

Creates java.net.URL from string
sourceraw docstring

errorclj

(error & args)
source

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.
sourceraw docstring

get-archclj

(get-arch)

Returns a keyword naming the host architecture

Returns a keyword naming the host architecture
sourceraw docstring

get-osclj

(get-os)

Returns a keyword naming the host OS.

Returns a keyword naming the host OS.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

ns-exists?clj

(ns-exists? namespace)
source

platform-nullsinkclj

(platform-nullsink)

Returns a file destination that will discard output.

Returns a file destination that will discard output.
sourceraw 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.
sourceraw 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.
sourceraw docstring

rebind-io!clj

(rebind-io!)
source

rebound-io?clj

source

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 '..'.
sourceraw 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.
sourceraw docstring

resolve-git-dirclj

(resolve-git-dir project)
source

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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

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

× close