update: organize commands to subcommands and rename bin

- existing functions are moved to subcommand `add-master-log`
This commit is contained in:
Wataru Otsubo 2024-07-21 21:04:46 +09:00
parent bdb415e6e6
commit a94a871e52
5 changed files with 81 additions and 56 deletions

View file

@ -15,8 +15,9 @@ mod integrated_test {
let test_out = PathBuf::new().join(&test_out_dir).join("out.csv");
// 1st file
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
let mut cmd = Command::cargo_bin("psb-qaqc")?;
cmd.current_dir("tests")
.arg("add-master-log")
.arg("./example_logs/valid/20240720_171418.log")
.arg(test_out.as_path())
.assert()
@ -33,8 +34,9 @@ mod integrated_test {
}
// 2nd file
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
let mut cmd = Command::cargo_bin("psb-qaqc")?;
cmd.current_dir("tests")
.arg("add-master-log")
.arg("./example_logs/valid/20240720_171418.log")
.arg(test_out.as_path())
.assert()
@ -48,8 +50,9 @@ mod integrated_test {
let test_out_dir = assert_fs::TempDir::new()?;
let test_out = PathBuf::new().join(&test_out_dir).join("out.csv");
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
let mut cmd = Command::cargo_bin("psb-qaqc")?;
cmd.current_dir("tests")
.arg("add-master-log")
.arg("./example_logs/valid/20240720_171419.log")
.arg(test_out.as_path())
.assert()