From d0279faec275217a5096251d00f4fac2502a4dda Mon Sep 17 00:00:00 2001 From: kylegranger Date: Mon, 29 Apr 2024 12:36:07 +0200 Subject: [PATCH] refactor: make some JsonExecArgs fields public --- crates/cli/src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 37279c65..24f06ce0 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -28,9 +28,9 @@ pub async fn calculate_hash_command(file_path: &PathBuf) -> BoxResult { } #[derive(Serialize, Deserialize, Debug, Clone)] -struct JsonCmdArgs { - name: String, - value: String, +pub struct JsonCmdArgs { + pub name: String, + pub value: String, } impl From for [String; 2] { @@ -40,10 +40,10 @@ impl From for [String; 2] { } #[derive(Serialize, Deserialize, Debug, Clone)] -struct JsonExecArgs { - program: String, - cmd_args: Vec, - inputs: Vec, +pub struct JsonExecArgs { + pub program: String, + pub cmd_args: Vec, + pub inputs: Vec, } #[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]