diff --git a/crates/hyperqueue/src/bin/hq.rs b/crates/hyperqueue/src/bin/hq.rs index 25b446fda..4a931835c 100644 --- a/crates/hyperqueue/src/bin/hq.rs +++ b/crates/hyperqueue/src/bin/hq.rs @@ -37,16 +37,14 @@ use hyperqueue::client::task::{ TaskListOpts, TaskOpts, }; use hyperqueue::common::cli::{ - get_task_id_selector, get_task_selector, ColorPolicy, CommonOpts, DashboardCommand, - DashboardOpts, GenerateCompletionOpts, HwDetectOpts, JobCommand, JobOpts, JobProgressOpts, - JobWaitOpts, OptsWithMatches, RootOptions, SubCommand, WorkerAddressOpts, WorkerCommand, - WorkerInfoOpts, WorkerListOpts, WorkerOpts, WorkerStopOpts, WorkerWaitOpts, + get_task_id_selector, get_task_selector, ColorPolicy, CommonOpts, GenerateCompletionOpts, + HwDetectOpts, JobCommand, JobOpts, JobProgressOpts, JobWaitOpts, OptsWithMatches, RootOptions, + SubCommand, WorkerAddressOpts, WorkerCommand, WorkerInfoOpts, WorkerListOpts, WorkerOpts, + WorkerStopOpts, WorkerWaitOpts, }; use hyperqueue::common::setup::setup_logging; use hyperqueue::common::utils::fs::absolute_path; use hyperqueue::server::bootstrap::get_client_session; -use hyperqueue::server::event::log::JournalReader; -use hyperqueue::server::event::Event; use hyperqueue::transfer::messages::{ FromClientMessage, IdSelector, JobInfoRequest, ToClientMessage, }; @@ -295,12 +293,15 @@ async fn command_worker_address( } #[cfg(feature = "dashboard")] -///Starts the hq Dashboard +/// Starts the hq dashboard async fn command_dashboard_start( gsettings: &GlobalSettings, - opts: DashboardOpts, + opts: hyperqueue::common::cli::DashboardOpts, ) -> anyhow::Result<()> { + use hyperqueue::common::cli::DashboardCommand; use hyperqueue::dashboard::start_ui_loop; + use hyperqueue::server::event::log::JournalReader; + use hyperqueue::server::event::Event; match opts.subcmd.unwrap_or_default() { DashboardCommand::Replay { journal, stream } => {