driver_tools/subcommands/restart/
args.rs1use argh::{ArgsInfo, FromArgs};
6
7#[derive(ArgsInfo, FromArgs, Debug, PartialEq)]
8#[argh(
9 subcommand,
10 name = "restart",
11 description = "Restart all driver hosts containing the driver specified by driver_path.",
12 example = "To restart a driver:
13
14 $ driver restart fuchsia-boot:///#driver/e1000.so",
15 error_code(1, "Failed to connect to the driver manager service")
16)]
17pub struct RestartCommand {
18 #[argh(positional, description = "path of the driver to be restarted.")]
19 pub driver_path: String,
20
21 #[argh(switch, short = 's', long = "select")]
23 pub select: bool,
24}