Command line interface for migrations.
Command line interface for migrations.
(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-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.
(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.
(render-erros errors)
Print CLI-related error messages.
Print CLI-related error messages.
(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