diff --git a/src-tauri/creddy_cli/src/proto.rs b/src-tauri/creddy_cli/src/proto.rs index 9897f86..e861111 100644 --- a/src-tauri/creddy_cli/src/proto.rs +++ b/src-tauri/creddy_cli/src/proto.rs @@ -9,6 +9,7 @@ use serde::{Serialize, Deserialize}; #[derive(Debug, Serialize, Deserialize)] +#[serde(tag = "type")] pub enum CliRequest { GetAwsCredential { name: Option, @@ -17,12 +18,13 @@ pub enum CliRequest { GetDockerCredential { server_url: String, }, - SaveCredential { - name: String, - is_default: bool, - credential: CliCredential, + StoreDockerCredential(DockerCredential), + EraseDockerCredential { + server_url: String, + }, + InvokeShortcut{ + action: ShortcutAction, }, - InvokeShortcut(ShortcutAction), }