Skip to main content

driver_tools/subcommands/composite/
args.rs

1// Copyright 2026 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::ListCompositeCommand;
6use super::subcommands::show::args::ShowCompositeCommand;
7use argh::{ArgsInfo, FromArgs};
8
9#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
10#[argh(
11    subcommand,
12    name = "composite",
13    description = "Commands to interact with composite node specs."
14)]
15pub struct CompositeCommand {
16    #[argh(subcommand)]
17    pub subcommand: CompositeSubcommand,
18}
19
20#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
21#[argh(subcommand)]
22pub enum CompositeSubcommand {
23    List(ListCompositeCommand),
24    Show(ShowCompositeCommand),
25}