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.
(load-config path)
Try to load an EDN config. For the default path, skip reading a file when it's missing. But when a custom path is specified, throw an error should a file or a resource is missing.
Try to load an EDN config. For the default path, skip reading a file when it's missing. But when a custom path is specified, throw an error should a file or a resource is missing.
(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.
(read-config url)
Having a java.net.URL object, try to read an EDN config which it points to.
Having a java.net.URL object, try to read an EDN config which it points to.
(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