Liking cljdoc? Tell your friends :D

com.yetanalytics.persephone.utils.cli

Clojure-only namespace for CLI-specific utilities, used by the :cli and :server aliases instead of the general API.

Clojure-only namespace for CLI-specific utilities, used by the
`:cli` and `:server` aliases instead of the general API.
raw docstring

conj-argvclj

(conj-argv values v)

Function to conj a non-array-valued arg v to pre-existing values.

Function to conj a non-array-valued arg `v` to pre-existing `values`.
sourceraw docstring

conj-argv-or-arrayclj

(conj-argv-or-array values v)

Function to conj an array-valued or non-array-valued arg v to pre-existing values. An array-valued v is presumed to be a vector (as opposed to a list or lazy seq).

Function to conj an array-valued or non-array-valued arg `v` to
pre-existing `values`. An array-valued `v` is presumed to be a vector
(as opposed to a list or lazy seq).
sourceraw docstring

handle-parsed-argsclj

(handle-parsed-args {:keys [options summary errors]})

Given the return value of cli/parse-opts, return either :error, :help or the parsed options map. In the :error case, print the CLI errors to stderr, and in the :help case, print the --help command result to stdout.

Given the return value of `cli/parse-opts`, return either `:error`,
`:help` or the parsed `options` map. In the `:error` case, print the
CLI errors to stderr, and in the `:help` case, print the `--help`
command result to stdout.
sourceraw docstring

iri-err-msgclj

(iri-err-msg _)
source

iri?clj

(iri? x)
source

(print-assert-errors ex)

Handle all possible assertions given an ExceptionInfo ex thrown from the persephone.utils.asserts namespace. Print assertion exceptions to stderr using printerr, or re-throw if not recognized.

Handle all possible assertions given an ExceptionInfo `ex` thrown from
the `persephone.utils.asserts` namespace. Print assertion exceptions to
stderr using `printerr`, or re-throw if not recognized.
sourceraw docstring

printerrclj

(printerr & error-messages)

Print the error-messages vector line-by-line to stderr.

Print the `error-messages` vector line-by-line to stderr.
sourceraw docstring

profile-err-msgclj

(profile-err-msg _)
source

profile?clj

(profile? p)
source

read-profileclj

(read-profile profile-filename)
source

read-statementclj

(read-statement statement-filename)
source

statement-err-dataclj

(statement-err-data s)
source

statement-err-msgclj

(statement-err-msg s)
source

statement?clj

(statement? s)
source

statements-err-dataclj

(statements-err-data s)
source

statements-err-msgclj

(statements-err-msg s)
source

statements?clj

(statements? s)
source

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

× close