Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

refactor: make some JsonExecArgs fields public #192

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions crates/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ pub async fn calculate_hash_command(file_path: &PathBuf) -> BoxResult<String> {
}

#[derive(Serialize, Deserialize, Debug, Clone)]
struct JsonCmdArgs {
name: String,
value: String,
pub struct JsonCmdArgs {
pub name: String,
pub value: String,
}

impl From<JsonCmdArgs> for [String; 2] {
Expand All @@ -40,10 +40,10 @@ impl From<JsonCmdArgs> for [String; 2] {
}

#[derive(Serialize, Deserialize, Debug, Clone)]
struct JsonExecArgs {
program: String,
cmd_args: Vec<JsonCmdArgs>,
inputs: Vec<JsonProgramData>,
pub struct JsonExecArgs {
pub program: String,
pub cmd_args: Vec<JsonCmdArgs>,
pub inputs: Vec<JsonProgramData>,
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]
Expand Down
Loading