blob: 8d7c885b0c8ae3f6629e04ceec676f9dd73a2fd7 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use std::io;
use std::path::PathBuf;
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
struct Options {
#[structopt(
long = "package_creation_manifest",
help = "path to package creation manifest file"
)]
package_manifest: PathBuf,
}
fn main() -> io::Result<()> {
let options = Options::from_args();
let creation_manifest =
fuchsia_pkg::CreationManifest::from_json(std::fs::File::open(options.package_manifest)?)
.unwrap();
println!("{:?}", creation_manifest);
Ok(())
}