Arrea.CLI.Definition (Arrea v2.2.0)

Copy Markdown View Source

CLI command definitions and DSL for Arrea.

Summary

Functions

Runs a single command without re-starting the application stack.

Runs the CLI with the given arguments.

Functions

exec(args)

@spec exec([String.t()]) :: term()

Runs a single command without re-starting the application stack.

This is the in-process execution path used by alaja action for batch execution. It assumes the application is already running, so it skips Application.ensure_all_started/1. Use main/1 for the top-level entry point and exec/1 for child invocations.

Example

Alaja.CLI.exec(["message", "--text", "Hello"])

main(args)

Runs the CLI with the given arguments.