Liking cljdoc? Tell your friends :D

zpst.config


aboutclj

(about)

Return version of this program.

Return version of this program.
sourceraw docstring

add-option-setclj

(add-option-set m)

Given an option map, turn the display-keys into a set in the map.

Given an option map, turn the display-keys into a set in the map.
sourceraw docstring

config-and-validateclj

(config-and-validate doc-string doc-map existing-map new-map)

Do a single new map. Returns [updated-map new-doc-map error-vec]. Handles removing elements from existing map as well as validation. Depends on existing-map to be the full, current options map!

Do a single new map. Returns [updated-map new-doc-map error-vec].
Handles removing elements from existing map as well as validation.
Depends on existing-map to be the full, current options map!
sourceraw docstring

config-and-validate-externalclj

(config-and-validate-external)

Configure from the zpstrc file on top of defaults. Left in the structure from zprint's config-and-validate-all, in case we want to add some other options for validation at some later date. Returns [new-map doc-map errors]

Configure from the zpstrc file on top of defaults.  Left in the
structure from zprint's config-and-validate-all, in case we want
to add some other options for validation at some later date.
Returns [new-map doc-map errors]
sourceraw docstring

config-configure-all!clj

(config-configure-all!)

Do external configuration regardless of whether or not it has already been done, replacing any internal configuration. Returns nil if successful, a vector of errors if not. Argument, if it exists, says whether or not to try to load additional libraries. Defaults to true, unusually enough.

Do external configuration regardless of whether or not it has
already been done, replacing any internal configuration.  Returns
nil if successful, a vector of errors if not.  Argument, if it
exists, says whether or not to try to load additional libraries.
Defaults to true, unusually enough.
sourceraw docstring

config-set-options!clj

(config-set-options! new-options)
(config-set-options! new-options doc-str)

Add some options to the current options, checking to make sure that they are correct. External interface for setting options (i.e., called by zpst.core/set-options!).

Add some options to the current options, checking to make
sure that they are correct.  External interface for setting
options (i.e., called by zpst.core/set-options!).
sourceraw docstring

configured-optionsclj

source

convert-keys-to-setclj

(convert-keys-to-set ks m)

Given a seq of boolean keys in a map, convert them individually to a set. By individually, that is to say that this a sequence of keys, not a key sequence.

Given a seq of boolean keys in a map, convert them individually
to a set. By individually, that is to say that this a sequence of
keys, not a key sequence.
sourceraw docstring

default-zpst-optionsclj

source

display-keysclj

source

empty-to-nilclj

(empty-to-nil empty-seq)

If the sequence is empty, then return nil, else return the sequence.

If the sequence is empty, then return nil, else return the sequence.
sourceraw docstring

explain-hide-keysclj

source

explained-optionsclj

source

explained-sequenceclj

source

get-default-explained-all-optionsclj

(get-default-explained-all-options)

Return the base explained options, matches get-default-options

Return the base explained options, matches get-default-options
sourceraw docstring

get-default-optionsclj

(get-default-options)

Return the base default options.

Return the base default options.
sourceraw docstring

get-explained-all-optionsclj

(get-explained-all-options)

Return any previously set doc-map complete.

Return any previously set doc-map complete.
sourceraw docstring

get-explained-optionsclj

(get-explained-options)

Return any previously set doc-map.

Return any previously set doc-map.
sourceraw docstring

get-optionsclj

(get-options)

Return the currently configured options.

Return the currently configured options.
sourceraw docstring

help-strclj

source

inc-explained-sequenceclj

(inc-explained-sequence)

Return current explained-seqence and add one to it.

Return current explained-seqence and add one to it.
sourceraw docstring

internal-set-options!clj

(internal-set-options! doc-string doc-map existing-options new-options)

Validate the new options, and update both the saved options and the doc-map as well. Will throw an exception for errors.

Validate the new options, and update both the saved options
and the doc-map as well.  Will throw an exception for errors.
sourceraw docstring

reset-default-options!clj

(reset-default-options!)

Remove any previously set options.

Remove any previously set options.
sourceraw docstring

reset-options!clj

(reset-options! updated-map)
(reset-options! updated-map doc-map)

Replace options to be used on every call. You must have validated these options already!

Replace options to be used on every call.  You must have validated
these options already!
sourceraw docstring

set-explained-options!clj

(set-explained-options! doc-map)

Set options to be used on every call.

Set options to be used on every call.
sourceraw docstring

trim-lastclj

(trim-last sym)

Trim the last character off of a keyword.

Trim the last character off of a keyword.
sourceraw docstring

validate-incoming-optionsclj

(validate-incoming-options doc-string incoming-options)

Take some incoming options from a call and validate them. Should be called whether or not we really have any options, since this ensures that the ~/.zpst.rc file is used to initialize everything. Either throws an exception or returns the options.

Take some incoming options from a call and validate them.
Should be called whether or not we really have any options, since
this ensures that the ~/.zpst.rc file is used to initialize everything.
Either throws an exception or returns the options.
sourceraw docstring

validate-optionsclj

(validate-options options)
(validate-options options source-str)

Validate an options map, which contains embedded zprint options maps. Requires source-str, a descriptive phrase which will be included in any errors. Returns nil for success, a string with error(s) if not.

Validate an options map, which contains embedded zprint options
maps.  Requires source-str, a descriptive phrase which will be
included in any errors.  Returns nil for success, a string with
error(s) if not.
sourceraw docstring

validate-style-mapclj

source

vec-str-to-strclj

(vec-str-to-str vec-str)

Take a vector of strings and concatenate them into one string with newlines between them.

Take a vector of strings and concatenate them into one string with
newlines between them.
sourceraw docstring

zprint-option-ksclj

source

zpstrcclj

source

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

× close