File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ pub enum PluginCommands {
41
41
Update ,
42
42
43
43
/// Print information about a plugin.
44
- Inspect ( Inspect ) ,
44
+ Show ( Show ) ,
45
45
}
46
46
47
47
impl PluginCommands {
@@ -53,7 +53,7 @@ impl PluginCommands {
53
53
PluginCommands :: Uninstall ( cmd) => cmd. run ( ) . await ,
54
54
PluginCommands :: Upgrade ( cmd) => cmd. run ( ) . await ,
55
55
PluginCommands :: Update => update ( ) . await ,
56
- PluginCommands :: Inspect ( cmd) => cmd. run ( ) . await ,
56
+ PluginCommands :: Show ( cmd) => cmd. run ( ) . await ,
57
57
}
58
58
}
59
59
}
@@ -421,12 +421,12 @@ impl Upgrade {
421
421
}
422
422
423
423
#[ derive( Parser , Debug ) ]
424
- pub struct Inspect {
424
+ pub struct Show {
425
425
/// Name of Spin plugin.
426
426
pub name : String ,
427
427
}
428
428
429
- impl Inspect {
429
+ impl Show {
430
430
pub async fn run ( self ) -> Result < ( ) > {
431
431
let manager = PluginManager :: try_default ( ) ?;
432
432
let manifest = manager
@@ -438,13 +438,13 @@ impl Inspect {
438
438
. await ?;
439
439
440
440
println ! (
441
- "{}: {} (License: {})\n {}\n \n {}" ,
441
+ "{}: {} (License: {})\n {}\n {}" ,
442
442
manifest. name( ) ,
443
443
manifest. version( ) ,
444
444
manifest. license( ) ,
445
445
manifest
446
446
. homepage_url( )
447
- . map( |u| u . to_string ( ) )
447
+ . map( |u| format! ( "{u} \n " ) )
448
448
. unwrap_or_default( ) ,
449
449
manifest. description( ) . unwrap_or( "No description provided" ) ,
450
450
) ;
You can’t perform that action at this time.
0 commit comments