aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/licenses_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/licenses_command.rs')
-rw-r--r--crates/shirabe/src/command/licenses_command.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/shirabe/src/command/licenses_command.rs b/crates/shirabe/src/command/licenses_command.rs
index 3be4df3..e8d62cc 100644
--- a/crates/shirabe/src/command/licenses_command.rs
+++ b/crates/shirabe/src/command/licenses_command.rs
@@ -200,11 +200,11 @@ impl Command for LicensesCommand {
io.write("");
let mut table = Table::new(output);
- table.set_style(shirabe_php_shim::PhpMixed::from("compact"))??;
+ table.set_style("compact".into())??;
table.set_headers(vec![
- PhpMixed::String("Name".to_string()),
- PhpMixed::String("Version".to_string()),
- PhpMixed::String("Licenses".to_string()),
+ "Name".into(),
+ "Version".into(),
+ "Licenses".into(),
]);
for package in &packages {
let link = PackageInfo::get_view_source_or_homepage_url(package.clone());
@@ -234,7 +234,7 @@ impl Command for LicensesCommand {
crate::package::DisplayMode::SourceRefIfDev,
)),
PhpMixed::String(licenses_str),
- ]));
+ ]).into());
}
table.render();
}