mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(cli): Apple Dev Teams format for info::Section::Display (#7282)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
This commit is contained in:
5
.changes/cli-apple-dev-team.md
Normal file
5
.changes/cli-apple-dev-team.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri-cli': 'patch:bug'
|
||||
---
|
||||
|
||||
Fix `tauri info` failing when there is no available iOS code signing certificate.
|
||||
@@ -12,13 +12,16 @@ pub fn items() -> Vec<SectionItem> {
|
||||
let teams = tauri_mobile::apple::teams::find_development_teams().unwrap_or_default();
|
||||
Some((
|
||||
if teams.is_empty() {
|
||||
"None".red().to_string()
|
||||
"Developer Teams: None".red().to_string()
|
||||
} else {
|
||||
teams
|
||||
.iter()
|
||||
.map(|t| format!("{} (ID: {})", t.name, t.id))
|
||||
.collect::<Vec<String>>()
|
||||
.join(", ")
|
||||
format!(
|
||||
"Developer Teams: {}",
|
||||
teams
|
||||
.iter()
|
||||
.map(|t| format!("{} (ID: {})", t.name, t.id))
|
||||
.collect::<Vec<String>>()
|
||||
.join(", ")
|
||||
)
|
||||
},
|
||||
Status::Neutral,
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user