Skip to content

Conversation

@ZaLiTHkA
Copy link

NOTE: I know this is still in "major version zero" days here, but I just couldn't resist.. technically this does impose an "API breaking change", simply because it removes the Commander export from lib/main.js.

with that said, as per Commander.js's own exports, cli.Commander and cli.program were actually the same thing anyway.

at the same time, this commit introduces access to the Command class exported by Commander.js, which makes it much easier to split up Command app logic into different files. readme updated with an example to match.

@basedwon do you have any problem with this..? not sure if you have any particular preference regarding the structure of the example, that's just how I would have written that snippet.

BREAKING: this removes the `Commander` export from `lib/main.js`.
@ZaLiTHkA ZaLiTHkA force-pushed the feat/improve-commander-integration branch from ef9a844 to 1ef0a73 Compare February 17, 2024 21:56
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.

1 participant