CLI (command-line interface)
Top-level command-line interface for ReaxKit workflows.
Works on: ReaxKit CLI (reaxkit) → dispatches to workflow modules under reaxkit.workflows.
This module defines the reaxkit entry point and routes each top-level subcommand
("kind") to its corresponding workflow module, which then registers task-level
subcommands (or runs as a kind-level workflow such as help / intspec).
main()
Build and execute the reaxkit CLI dispatcher.
Works on: ReaxKit CLI (reaxkit) and registered workflow modules.
This function:
1. Preprocesses argv to inject default tasks where needed.
2. Creates the top-level parser and the kind subparsers.
3. Lets each workflow module register its own task subparsers.
4. Parses the CLI and dispatches to the selected task's _run function.
Returns:
| Type | Description |
|---|---|
int
|
Exit code returned by the selected workflow task runner. |
Examples:
Per-file workflow with task:
- reaxkit fort7 get --file fort.7
Kind-level workflow without task:
-
reaxkit help --query "fort.7"
-
reaxkit intspec --folder workflows