cli: add commands to inspect clients
This commit is contained in:
parent
5e3465d861
commit
bd04b09171
12 changed files with 557 additions and 16 deletions
10
src/cli.rs
10
src/cli.rs
|
|
@ -1,3 +1,4 @@
|
|||
mod clients;
|
||||
mod color;
|
||||
mod color_management;
|
||||
mod damage_tracking;
|
||||
|
|
@ -19,9 +20,9 @@ mod xwayland;
|
|||
use {
|
||||
crate::{
|
||||
cli::{
|
||||
color_management::ColorManagementArgs, damage_tracking::DamageTrackingArgs,
|
||||
idle::IdleCmd, input::InputArgs, randr::RandrArgs, reexec::ReexecArgs,
|
||||
xwayland::XwaylandArgs,
|
||||
clients::ClientsArgs, color_management::ColorManagementArgs,
|
||||
damage_tracking::DamageTrackingArgs, idle::IdleCmd, input::InputArgs, randr::RandrArgs,
|
||||
reexec::ReexecArgs, xwayland::XwaylandArgs,
|
||||
},
|
||||
compositor::start_compositor,
|
||||
format::{Format, ref_formats},
|
||||
|
|
@ -86,6 +87,8 @@ pub enum Cmd {
|
|||
/// Replace the compositor by another process. (Only for development.)
|
||||
#[clap(hide = true)]
|
||||
Reexec(ReexecArgs),
|
||||
/// Inspect/manipulate the connected clients.
|
||||
Clients(ClientsArgs),
|
||||
#[cfg(feature = "it")]
|
||||
RunTests,
|
||||
}
|
||||
|
|
@ -244,6 +247,7 @@ pub fn main() {
|
|||
Cmd::DamageTracking(a) => damage_tracking::main(cli.global, a),
|
||||
Cmd::Xwayland(a) => xwayland::main(cli.global, a),
|
||||
Cmd::ColorManagement(a) => color_management::main(cli.global, a),
|
||||
Cmd::Clients(a) => clients::main(cli.global, a),
|
||||
#[cfg(feature = "it")]
|
||||
Cmd::RunTests => crate::it::run_tests(),
|
||||
Cmd::Reexec(a) => reexec::main(cli.global, a),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue