feat: ipc server and cli
This commit is contained in:
14
src/ipc/commands.rs
Normal file
14
src/ipc/commands.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use clap::Subcommand;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Subcommand, Debug, Serialize, Deserialize)]
|
||||
#[serde(tag = "type")]
|
||||
pub enum Command {
|
||||
/// Return "ok"
|
||||
Ping,
|
||||
|
||||
/// Open the GTK inspector
|
||||
Inspect,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user