mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-05 22:21:31 +00:00
feature(zone): kernel command line control on launch (#351)
This commit is contained in:
@ -31,6 +31,7 @@ pub struct ControlCommand {
|
||||
command: ControlCommands,
|
||||
}
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
#[derive(Parser)]
|
||||
pub enum ControlCommands {
|
||||
Zone(ZoneCommand),
|
||||
@ -48,7 +49,11 @@ impl ControlCommand {
|
||||
}
|
||||
|
||||
impl ControlCommands {
|
||||
pub async fn run(self, client: ControlServiceClient<Channel>, events: EventStream) -> Result<()> {
|
||||
pub async fn run(
|
||||
self,
|
||||
client: ControlServiceClient<Channel>,
|
||||
events: EventStream,
|
||||
) -> Result<()> {
|
||||
match self {
|
||||
ControlCommands::Zone(zone) => zone.run(client, events).await,
|
||||
|
||||
|
Reference in New Issue
Block a user