1
0
Fork 0
forked from wry/wry

cli: add pid subcommand

This commit is contained in:
Julian Orth 2026-03-09 22:32:40 +01:00
parent fe8b51ffb6
commit 447dfb3118
7 changed files with 55 additions and 3 deletions

View file

@ -7,6 +7,7 @@ mod generate;
mod idle;
mod input;
mod log;
mod pid;
mod quit;
mod randr;
mod reexec;
@ -98,6 +99,8 @@ pub enum Cmd {
Tree(TreeArgs),
/// Prints the Jay version and exits.
Version,
/// Prints the Jay PID and exits.
Pid,
#[cfg(feature = "it")]
RunTests,
}
@ -236,6 +239,7 @@ pub fn main() {
Cmd::Clients(a) => clients::main(cli.global, a),
Cmd::Tree(a) => tree::main(cli.global, a),
Cmd::Version => version::main(cli.global),
Cmd::Pid => pid::main(cli.global),
#[cfg(feature = "it")]
Cmd::RunTests => crate::it::run_tests(),
Cmd::Reexec(a) => reexec::main(cli.global, a),