add CliRequest variants to store/erase docker credentials

This commit is contained in:
Joseph Montanaro 2024-11-23 13:47:37 -05:00
parent 0a355c299b
commit 8bcdc5420a

View File

@ -9,6 +9,7 @@ use serde::{Serialize, Deserialize};
#[derive(Debug, Serialize, Deserialize)] #[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum CliRequest { pub enum CliRequest {
GetAwsCredential { GetAwsCredential {
name: Option<String>, name: Option<String>,
@ -17,12 +18,13 @@ pub enum CliRequest {
GetDockerCredential { GetDockerCredential {
server_url: String, server_url: String,
}, },
SaveCredential { StoreDockerCredential(DockerCredential),
name: String, EraseDockerCredential {
is_default: bool, server_url: String,
credential: CliCredential, },
InvokeShortcut{
action: ShortcutAction,
}, },
InvokeShortcut(ShortcutAction),
} }