Liking cljdoc? Tell your friends :D

pg.migration.cli

Command line interface for migrations.

Command line interface for migrations.
raw docstring

-mainclj

(-main & args)

CLI-OPT-CREATEclj


CLI-OPT-MAINclj


CLI-OPT-MIGRATEclj


CLI-OPT-ROLLBACKclj


CMD_CREATEclj


CMD_HELPclj


CMD_LISTclj


CMD_MIGRATEclj


CMD_ROLLBACKclj


CMDSclj


CONFIG-FIELDSclj


CONFIG-NAMEclj


current-userclj

(current-user _)

edn-readersclj


error!cljmacro

(error! template & args)

exitclj

(exit code)
(exit code message)
(exit code message & args)

Terminate a program with a given status code and an error message. The message gets sent to either stdout or stderr depending on the status code.

Terminate a program with a given status code
and an error message. The message gets sent to either
stdout or stderr depending on the status code.
raw docstring

handle-createclj

(handle-create config cmd-args)

Handle the create sub-command.

Handle the `create` sub-command.
raw docstring

handle-helpclj

(handle-help summary)

handle-listclj

(handle-list config cmd-args)

Handle the list sub-command.

Handle the `list` sub-command.
raw docstring

handle-migrateclj

(handle-migrate config cmd-args)

Handle the migrate sub-command.

Handle the `migrate` sub-command.
raw docstring

handle-rollbackclj

(handle-rollback config cmd-args)

Handle the rollback sub-command.

Handle the `rollback` sub-command.
raw docstring

handle-unknown-cmdclj

(handle-unknown-cmd cmd)

mainclj

(main args & more)

A more convenient version of -main that accepts a vector of args plus extra args.

A more convenient version of -main that accepts
a vector of args plus extra args.
raw docstring

OPT-HELPclj


parse-argsclj

(parse-args args cli-opt)

A strict version of parse-opts that renders errors and terminates the program.

A strict version of `parse-opts` that renders errors
and terminates the program.
raw docstring

parse-configclj

(parse-config path)

parse-intclj

(parse-int string)

path->configclj

(path->config path)

path-exists?clj

(path-exists? path)

render-errosclj

(render-erros errors)

Print CLI-related error messages.

Print CLI-related error messages.
raw docstring

render-summaryclj

(render-summary summary)

with-exitcljmacro

(with-exit & body)

A macro that prevents terminating JVM in favour of throwing an exception.

A macro that prevents terminating JVM
in favour of throwing an exception.
raw docstring

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

× close