@@ -8,6 +8,7 @@ use cli_table::ColorChoice;
88
99use clap:: ArgSettings :: HiddenShortHelp ;
1010use hyperqueue:: client:: commands:: autoalloc:: { command_autoalloc, AutoAllocOpts } ;
11+ use hyperqueue:: client:: commands:: event:: { command_event_log, EventLogOpts } ;
1112use hyperqueue:: client:: commands:: job:: {
1213 cancel_job, output_job_cat, output_job_detail, output_job_list, output_job_tasks,
1314 JobCancelOpts , JobCatOpts , JobInfoOpts , JobListOpts , JobTasksOpts ,
@@ -111,6 +112,8 @@ enum SubCommand {
111112 /// Automatic allocation management
112113 #[ clap( name = "alloc" ) ]
113114 AutoAlloc ( AutoAllocOpts ) ,
115+ /// Event log management
116+ EventLog ( EventLogOpts ) ,
114117 ///Commands for the dashboard
115118 Dashboard ( DashboardOpts ) ,
116119 /// Generate shell completion script
@@ -146,7 +149,7 @@ struct ServerStartOpts {
146149
147150 /// Path to a log file where events will be stored.
148151 #[ clap( long, hide( true ) ) ]
149- event_log_file : Option < PathBuf > ,
152+ event_log_path : Option < PathBuf > ,
150153}
151154
152155#[ derive( Parser ) ]
@@ -297,7 +300,7 @@ async fn command_server_start(
297300 client_port : opts. client_port ,
298301 worker_port : opts. worker_port ,
299302 event_buffer_size : opts. event_store_size ,
300- event_log_file : opts. event_log_file ,
303+ event_log_path : opts. event_log_path ,
301304 } ;
302305
303306 init_hq_server ( gsettings, server_cfg) . await
@@ -601,6 +604,7 @@ async fn main() -> hyperqueue::Result<()> {
601604 SubCommand :: Dashboard ( opts) => command_dashboard_start ( & gsettings, opts) . await ,
602605 SubCommand :: Log ( opts) => command_log ( & gsettings, opts) ,
603606 SubCommand :: AutoAlloc ( opts) => command_autoalloc ( & gsettings, opts) . await ,
607+ SubCommand :: EventLog ( opts) => command_event_log ( opts) ,
604608 SubCommand :: GenerateCompletion ( opts) => generate_completion ( opts) ,
605609 } ;
606610
0 commit comments