Skip to content

Commit

Permalink
refactor: modified no_ask_flag to no_wizard to be same option name #1188
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Oct 20, 2023
1 parent 4d010ea commit d8138bf
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 34 deletions.
26 changes: 13 additions & 13 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
Expand Down Expand Up @@ -1992,7 +1992,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
};
let ch = mock_ch_filter
.get(&CompactString::from("security"))
Expand Down Expand Up @@ -2231,7 +2231,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv_multiline.csv").to_path_buf()),
Expand Down Expand Up @@ -2322,7 +2322,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
};
let ch = mock_ch_filter
.get(&CompactString::from("security"))
Expand Down Expand Up @@ -2547,7 +2547,7 @@ mod tests {
no_field: false,
remove_duplicate_data: true,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv_remove_duplicate.csv").to_path_buf()),
Expand Down Expand Up @@ -2636,7 +2636,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
};
let ch = mock_ch_filter
.get(&CompactString::from("security"))
Expand Down Expand Up @@ -2872,7 +2872,7 @@ mod tests {
no_field: false,
remove_duplicate_data: true,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv_remove_duplicate.json").to_path_buf()),
Expand Down Expand Up @@ -2961,7 +2961,7 @@ mod tests {
no_field: false,
remove_duplicate_data: true,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
};
let ch = mock_ch_filter
.get(&CompactString::from("security"))
Expand Down Expand Up @@ -3282,7 +3282,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
};
let data: Vec<(CompactString, Profile)> = vec![
(
Expand Down Expand Up @@ -3421,7 +3421,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv_json.json").to_path_buf()),
Expand Down Expand Up @@ -3509,7 +3509,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
};
let ch = mock_ch_filter
.get(&CompactString::from("security"))
Expand Down Expand Up @@ -3686,7 +3686,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv_jsonl.jsonl").to_path_buf()),
Expand Down Expand Up @@ -3774,7 +3774,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
};
let ch = mock_ch_filter
.get(&CompactString::from("security"))
Expand Down
10 changes: 5 additions & 5 deletions src/detections/detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down Expand Up @@ -1509,7 +1509,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: Some(Path::new("test_files/mmdb").to_path_buf()),
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
Expand Down Expand Up @@ -1644,7 +1644,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: Some(Path::new("test_files/mmdb").to_path_buf()),
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
Expand Down Expand Up @@ -1775,7 +1775,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
Expand Down Expand Up @@ -1919,7 +1919,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
Expand Down
2 changes: 1 addition & 1 deletion src/detections/rule/condition_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down
2 changes: 1 addition & 1 deletion src/detections/rule/count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down
2 changes: 1 addition & 1 deletion src/detections/rule/matchers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down
2 changes: 1 addition & 1 deletion src/detections/rule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down
2 changes: 1 addition & 1 deletion src/detections/rule/selectionnodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down
2 changes: 1 addition & 1 deletion src/detections/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ impl App {
|| stored_static.logon_summary_flag
|| stored_static.search_flag
|| stored_static.computer_metrics_flag
|| stored_static.output_option.as_ref().unwrap().no_ask_flag)
|| stored_static.output_option.as_ref().unwrap().no_wizard)
{
println!("Scan wizard:");
println!();
Expand Down
8 changes: 4 additions & 4 deletions src/options/htmlreport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down Expand Up @@ -362,7 +362,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down Expand Up @@ -429,7 +429,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
jsonl_timeline: false,
geo_ip: None,
Expand Down Expand Up @@ -493,7 +493,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
jsonl_timeline: false,
geo_ip: None,
Expand Down
8 changes: 4 additions & 4 deletions src/options/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down Expand Up @@ -600,7 +600,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down Expand Up @@ -675,7 +675,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down Expand Up @@ -780,7 +780,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down
2 changes: 1 addition & 1 deletion src/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ mod tests {
no_field: false,
remove_duplicate_data: false,
remove_duplicate_detections: false,
no_ask_flag: true,
no_wizard: true,
},
geo_ip: None,
output: None,
Expand Down

0 comments on commit d8138bf

Please sign in to comment.