mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
feature(hypervisor-dmesg): cli: rename hypervisor-messages command to hv-console
This commit is contained in:
parent
3255136b04
commit
7e26f68bf9
@ -8,10 +8,10 @@ use tonic::{transport::Channel, Request};
|
|||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(about = "Display hypervisor diagnostic messages")]
|
#[command(about = "Display hypervisor diagnostic messages")]
|
||||||
pub struct HostHypervisorMessagesCommand {
|
pub struct HostHvConsoleCommand {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl HostHypervisorMessagesCommand {
|
impl HostHvConsoleCommand {
|
||||||
pub async fn run(self, mut client: ControlServiceClient<Channel>) -> Result<()> {
|
pub async fn run(self, mut client: ControlServiceClient<Channel>) -> Result<()> {
|
||||||
let response = client
|
let response = client
|
||||||
.read_hypervisor_console_ring(Request::new(ReadHypervisorConsoleRingRequest { clear: false }))
|
.read_hypervisor_console_ring(Request::new(ReadHypervisorConsoleRingRequest { clear: false }))
|
@ -8,12 +8,12 @@ use krata::v1::control::control_service_client::ControlServiceClient;
|
|||||||
use crate::cli::host::cpu_topology::HostCpuTopologyCommand;
|
use crate::cli::host::cpu_topology::HostCpuTopologyCommand;
|
||||||
use crate::cli::host::identify::HostStatusCommand;
|
use crate::cli::host::identify::HostStatusCommand;
|
||||||
use crate::cli::host::idm_snoop::HostIdmSnoopCommand;
|
use crate::cli::host::idm_snoop::HostIdmSnoopCommand;
|
||||||
use crate::cli::host::dmesg::HostHypervisorMessagesCommand;
|
use crate::cli::host::hv_console::HostHvConsoleCommand;
|
||||||
|
|
||||||
pub mod cpu_topology;
|
pub mod cpu_topology;
|
||||||
pub mod identify;
|
pub mod identify;
|
||||||
pub mod idm_snoop;
|
pub mod idm_snoop;
|
||||||
pub mod dmesg;
|
pub mod hv_console;
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(about = "Manage the host of the isolation engine")]
|
#[command(about = "Manage the host of the isolation engine")]
|
||||||
@ -37,7 +37,7 @@ pub enum HostCommands {
|
|||||||
CpuTopology(HostCpuTopologyCommand),
|
CpuTopology(HostCpuTopologyCommand),
|
||||||
Status(HostStatusCommand),
|
Status(HostStatusCommand),
|
||||||
IdmSnoop(HostIdmSnoopCommand),
|
IdmSnoop(HostIdmSnoopCommand),
|
||||||
HypervisorMessages(HostHypervisorMessagesCommand),
|
HvConsole(HostHvConsoleCommand),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl HostCommands {
|
impl HostCommands {
|
||||||
@ -53,7 +53,7 @@ impl HostCommands {
|
|||||||
|
|
||||||
HostCommands::IdmSnoop(snoop) => snoop.run(client, events).await,
|
HostCommands::IdmSnoop(snoop) => snoop.run(client, events).await,
|
||||||
|
|
||||||
HostCommands::HypervisorMessages(hvdmesg) => hvdmesg.run(client).await,
|
HostCommands::HvConsole(hvconsole) => hvconsole.run(client).await,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user