From 8bcdc5420a12bb18431ac67ee46524129659d112 Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Sat, 23 Nov 2024 13:47:37 -0500 Subject: [PATCH] add CliRequest variants to store/erase docker credentials --- src-tauri/creddy_cli/src/proto.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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), }