agama/rust/suseconnect-agama/examples/print_addons.rs
Josef Reidinger e233088598
cargo fmt
2025-12-10 14:23:07 +01:00

16 lines
522 B
Rust

use suseconnect_agama::{show_product, ConnectParams, ProductSpecification};
// Note: the example has to be run on registered SLES 16, otherwise it returns different errors
pub fn main() {
tracing_subscriber::fmt::init();
let product_spec = ProductSpecification {
identifier: "SLES".to_string(),
version: "16.0".to_string(),
arch: "x86_64".to_string(),
};
let params = ConnectParams::default();
let result = show_product(product_spec, params);
println!("{:?}", result);
}