mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 07:55:34 +03: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:
parent
38d0bed8eb
commit
5eb8554331
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,
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user