pallet.main documentation

*exit-process?*

var

Bind to false to suppress process termination.

-main

fn

[& args]
[]

Command line runner.

args-with-extras

fn

[args extras]

Add extra switches back into an argument vector.

pallet-args

fn

[args switches]
[args]

Process command line arguments. Returns an option map, a vector of arguments and a help string. Optionally accepts a sequence of switch descriptions.

pallet-task

fn

[args & {:keys [environment]}]

A command line for pallet.

Usage:

Switches Default Desc
-------- ------- ----
-P, --service Service key to use (use add-service to create a service -p, --provider Cloud provider name.
-i, --identity Cloud user name or key.
-c, --credential Cloud password or secret.
-B, --blobstore-provider Blobstore provider name.
-I, --blobstore-identity Blobstore user name or key.
-C, --blobstore-credential Blobstore password or secret.
-O, --project-options Project options (usually picked up from project.clj).
-D, --defaults Default options (usually picked up from config.clj).

process-args

fn

[all-args]

Process arguments, returning options, arguments and unrecognised options.