Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ApplicationBuilder interface #26

Closed
wants to merge 2 commits into from
Closed

Add ApplicationBuilder interface #26

wants to merge 2 commits into from

Conversation

wagoodman
Copy link
Contributor

@wagoodman wagoodman commented Sep 5, 2023

This adds an ApplicationBuilder interface to allow consuming applications to separate building and usage concerns. Whlie the CLI is being built, add flag concerns and command additions are allowed, but once the application is built the consumer application can decide to raise up the user interface to either run the application or embed it into an existing CLI.

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman added the enhancement New feature or request label Sep 5, 2023
kzantow
kzantow previously approved these changes Sep 5, 2023
Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add an interface to cast the application to?

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman dismissed kzantow’s stale review September 5, 2023 13:48

made additional changes

@wagoodman wagoodman changed the title Add ability to get root command for embedding CLIs Add ApplicationBuilder interface Sep 5, 2023
@wagoodman
Copy link
Contributor Author

From an offline conversation: we might decide to do this later, but for now let's let the consuming application decide how it should expose out the cobra command (if it wants to at all)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants