mirror of
https://github.com/phantomptr/ps5upload.git
synced 2026-10-22 11:53:22 -05:00
Upload, install, convert and manage PS5 game packages over the network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
499 B
Rust
16 lines
499 B
Rust
//! Tiny CLI to dump parsed PKG metadata. Useful for diagnostics:
|
|
//! cargo run -p ps5upload-pkg --example probe -- /path/to/file.pkg
|
|
|
|
fn main() {
|
|
let path = std::env::args()
|
|
.nth(1)
|
|
.expect("usage: probe <path/to/file.pkg>");
|
|
match ps5upload_pkg::parse_pkg(std::path::Path::new(&path)) {
|
|
Ok(m) => println!("{}", serde_json::to_string_pretty(&m).unwrap()),
|
|
Err(e) => {
|
|
eprintln!("ERR: {e}");
|
|
std::process::exit(1);
|
|
}
|
|
}
|
|
}
|