Add a processing command
- Identify the input/output types and task sequence. Reuse a recipe in
python/batchalign/recipes.pyor add one that constructsPipeline. - Implement a command module under
python/batchalign/cli/. Useresolve_inputsfor multiple paths and file lists, andcli_options(ctx)for global settings. - Pass
opts.parallelas the recipe’sworkersvalue. UseInterfacefor progress and the shared output helpers for outcomes where their contract fits. - Register the module in
_LAZY_SUBCOMMANDSincli/__init__.py. A file undercli/hidden/is not automatically a public command. - Test help, argument validation, output destinations, and failures. Exercise a
real invocation through
just batchalign cli. - Add a task-focused how-to page and update the CLI reference.
morphotag.py demonstrates staged CHAT preprocessing; convert.py demonstrates
output collision checks. Use the example that matches the new command’s behavior.
See Pipeline architecture for the runtime.