refactor: execute_command()

Include Id and DockerCommand in a DockerMessage, used by the execute_command function to reduce duplicated code
This commit is contained in:
Jack Wills
2024-11-15 15:39:06 +00:00
parent 1f9062a5cb
commit 2a834d6c2f
6 changed files with 104 additions and 148 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
use crate::app_data::DockerControls;
use crate::app_data::DockerCommand;
use std::fmt;
/// app errors to set in global state
#[allow(unused)]
#[derive(Debug, Clone, Copy)]
pub enum AppError {
DockerCommand(DockerControls),
DockerCommand(DockerCommand),
DockerExec,
DockerLogs,
DockerConnect,