feat: ipc server and cli

This commit is contained in:
Jake Stanger
2023-06-22 23:06:45 +01:00
parent 93baf8f568
commit f5bdc5a027
10 changed files with 427 additions and 6 deletions

14
src/ipc/commands.rs Normal file
View 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,
}