driver_tools/subcommands/host/
args.rs

1// Copyright 2025 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 super::subcommands::list::args::ListCommand;
6use super::subcommands::show::args::ShowCommand;
7use argh::{ArgsInfo, FromArgs};
8
9#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
10#[argh(
11    subcommand,
12    name = "host",
13    description = "Commands to interact with driver framework driver hosts."
14)]
15pub struct HostCommand {
16    #[argh(subcommand)]
17    pub subcommand: HostSubcommand,
18}
19
20#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
21#[argh(subcommand)]
22pub enum HostSubcommand {
23    List(ListCommand),
24    Show(ShowCommand),
25}