-
Notifications
You must be signed in to change notification settings - Fork 249
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
Conversation
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
There was a problem hiding this 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>
804d39e
to
9244b78
Compare
@@ -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:"); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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.