fix(ipc): command/response casing

This commit is contained in:
Jake Stanger
2023-07-09 19:59:17 +01:00
parent abf490b04e
commit eee2182ab9
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
use std::path::PathBuf;
#[derive(Subcommand, Debug, Serialize, Deserialize)]
#[serde(tag = "type")]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum Command {
/// Return "ok"
Ping,

View File

@@ -1,7 +1,7 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "type")]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum Response {
Ok,
OkValue { value: String },