You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
8
9
+
## [0.5.1] - 2026-04-03
10
+
11
+
### Added
12
+
-**Pre-populated registry support** — `create_cli()` accepts optional `registry` and `executor` parameters. When a pre-populated `Registry` is provided, filesystem discovery is skipped entirely. This enables frameworks that register modules at runtime (e.g. apflow's bridge) to generate CLI commands from their existing registry without requiring an extensions directory.
13
+
- Passing `registry` alone auto-builds an `Executor`; passing `executor` without `registry` raises `ValueError`.
Copy file name to clipboardExpand all lines: README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,14 +92,29 @@ All modules are auto-discovered. CLI flags are auto-generated from each module's
92
92
### Programmatic approach (Python API)
93
93
94
94
```python
95
-
from apcore import Registry, Executor
96
-
from apcore_cli.__main__ import create_cli
95
+
from apcore_cli import create_cli
97
96
98
-
# Build the CLI from your registry
97
+
# Build the CLI from an extensions directory (auto-discovers modules)
99
98
cli = create_cli(extensions_dir="./extensions")
100
99
cli(standalone_mode=True)
101
100
```
102
101
102
+
#### Pre-populated registry
103
+
104
+
Frameworks that register modules at runtime (e.g. apflow's bridge) can pass a pre-populated `Registry` directly, skipping filesystem discovery entirely:
0 commit comments