Command line interface for migrations.
Command line interface for migrations.
(-main & args)
(current-user _)
(error! template & args)
(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.
(handle-create config cmd-args)
Handle the create
sub-command.
Handle the `create` sub-command.
(handle-help summary)
(handle-list config cmd-args)
Handle the list
sub-command.
Handle the `list` sub-command.
(handle-migrate config cmd-args)
Handle the migrate
sub-command.
Handle the `migrate` sub-command.
(handle-rollback config cmd-args)
Handle the rollback
sub-command.
Handle the `rollback` sub-command.
(handle-unknown-cmd cmd)
(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.
(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.
(parse-config path)
(parse-int string)
(path->config path)
(path-exists? path)
(render-erros errors)
Print CLI-related error messages.
Print CLI-related error messages.
(render-summary summary)
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close