Skip to content

♻️ upgrade to configliere multi-stage parse#24

Merged
cowboyd merged 1 commit intomainfrom
refactor-cli
Mar 24, 2026
Merged

♻️ upgrade to configliere multi-stage parse#24
cowboyd merged 1 commit intomainfrom
refactor-cli

Conversation

@cowboyd
Copy link
Copy Markdown
Member

@cowboyd cowboyd commented Mar 23, 2026

Motivation

We need to be set up to have multi-phase parsing of our config so that we can load plugins and have those plugins determine what the config looks like.

Approach

Use configliere's inject() to split CLI parsing into two phases: the first resolves the program preamble, and the second receives the protocol at runtime to build dynamic subcommands. Extract callMethod and runProgram into dedicated command modules.

@cowboyd cowboyd requested a review from jbolda March 23, 2026 19:01
@cowboyd cowboyd force-pushed the refactor-cli branch 2 times, most recently from e5b42d9 to feff26d Compare March 24, 2026 15:57
Use configliere's `inject()` to split CLI parsing into two phases:
the first resolves the program preamble, and the second receives
the protocol at runtime to build dynamic subcommands. Extract
`callMethod` and `runProgram` into dedicated command modules.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 24, 2026

Open in StackBlitz

npm i https://pkg.pr.new/thefrontside/inspector/@effectionx/inspector@24

commit: def68b3

@cowboyd cowboyd merged commit f2b5477 into main Mar 24, 2026
4 checks passed
@cowboyd cowboyd deleted the refactor-cli branch March 24, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants