| 1 | use apt_sources::Repositories; |
| 2 | use indoc::indoc; |
| 3 | |
| 4 | pub const TEXT: &str = indoc! {r#" |
| 5 | Types: deb |
| 6 | URIs: https://download.docker.com/linux/ubuntu |
| 7 | Suites: noble |
| 8 | Components: stable |
| 9 | Architectures: amd64 |
| 10 | Signed-By: /usr/share/keyrings/docker.gpg |
| 11 | "#}; |
| 12 | |
| 13 | pub fn main() { |
| 14 | let repos = TEXT.parse::<Repositories>().unwrap(); |
| 15 | let suites = repos[0].suites(); |
| 16 | println!("{}", suites.join(" ")); |
| 17 | } |