bootpkg/
args.rs

1// Copyright 2024 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use argh::{ArgsInfo, FromArgs};
6
7#[derive(FromArgs, Debug, PartialEq)]
8/// discover information about installed bootfs packages
9pub struct Args {
10    #[argh(subcommand)]
11    pub command: SubCommand,
12}
13
14#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
15#[argh(subcommand)]
16pub enum SubCommand {
17    List(ListCommand),
18    Show(ShowCommand),
19}
20
21#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
22#[argh(subcommand, name = "list")]
23/// list set of bootfs package available
24pub struct ListCommand {}
25
26#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
27#[argh(subcommand, name = "show")]
28/// display bootfs package information
29pub struct ShowCommand {
30    #[argh(positional)]
31    /// package name to show information about
32    pub package_name: String,
33}