windlass.cli¶
cli
¶
The windlass command-line interface.
A small set of commands that answer the questions people actually have when something is not working::
windlass info # version, Python, which extras are installed
windlass list # every registered component
windlass list chunker # one kind, with descriptions
windlass config # effective settings, secrets masked
windlass doctor # diagnose a broken install
windlass ask "..." --docs ./ # a one-shot RAG query
windlass chat # an interactive agent session
doctor is the important one: it reports exactly which optional dependencies
are present, whether credentials are configured, and what the defaults resolve
to — which is usually enough to explain the problem without opening a REPL.
build_parser
¶
Build the argument parser.
Returns:
| Type | Description |
|---|---|
ArgumentParser
|
The configured :class: |
Source code in src\windlass\cli.py
main
¶
Run the CLI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
list[str] | None
|
Arguments, defaulting to |
None
|
Returns:
| Type | Description |
|---|---|
int
|
A process exit code: |
int
|
interrupt. |