mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
28 lines
681 B
Rust
28 lines
681 B
Rust
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
use super::SectionItem;
|
|
|
|
use colored::Colorize;
|
|
|
|
pub fn items() -> Vec<SectionItem> {
|
|
vec![SectionItem::new().action(|| {
|
|
let teams = cargo_mobile2::apple::teams::find_development_teams().unwrap_or_default();
|
|
|
|
if teams.is_empty() {
|
|
"Developer Teams: None".red().to_string().into()
|
|
} else {
|
|
format!(
|
|
"Developer Teams: {}",
|
|
teams
|
|
.iter()
|
|
.map(|t| format!("{} (ID: {})", t.name, t.id))
|
|
.collect::<Vec<String>>()
|
|
.join(", ")
|
|
)
|
|
.into()
|
|
}
|
|
})]
|
|
}
|