Xenium v0.1.0 Xenium.CLI View Source

Handle command line operations for use as a local executable.

Link to this section Summary

Functions

Entrypoint for the app if compiled into an executable

Parse command line arguments

React to the command line arguments

Link to this section Functions

Entrypoint for the app if compiled into an executable.

Pipe the argument vector through parse_args/1 and process/1

Parse command line arguments.

argv can be -h or --help, which returns :help. Otherwise, it tries to parse out the URL, method name, and parameters.

Returns a tuple of { url, method, params }, or :help.

React to the command line arguments.

Print the help dialog if help is needed. Call the client function otherwise. Accepts either the :help atom or a tuple of { url, method, params} where params is a list.