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

feat(plugins): show description and homepage of installed plugin #1484

Merged
merged 4 commits into from
May 16, 2023

Conversation

cardoso
Copy link
Contributor

@cardoso cardoso commented May 13, 2023

It would be nice to give plugins a chance to display something once they're installed such as instructions or notices.

Showing the description would be a good start.

I also included the homepage (if it's HTTPS) as a good place to link to some documentation.

Signed-off-by: Matheus Cardoso <matheus@cardo.so>
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

Co-authored-by: Ryan Levick <me@ryanlevick.com>
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
@@ -467,6 +467,17 @@ async fn try_install(
if continue_to_install(manifest, package, yes_to_all)? {
let installed = manager.install(manifest, package).await?;
println!("Plugin '{installed}' was installed successfully!");

if let Some(description) = manifest.description() {
println!("\nDescription:");
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we want this additional newline added to a println statement? I'm assuming it is a stylistic choice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without some additional line breaks it disappears with the rest of the output. A mild improvement though. I believe #1481 will address this without needing the line breaks.

@itowlson itowlson merged commit 9aa23cf into fermyon:main May 16, 2023
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.

4 participants