Skip to content

Commit

Permalink
🔥 Remove --skip-wait
Browse files Browse the repository at this point in the history
  • Loading branch information
tgotwig committed Feb 4, 2025
1 parent 7123d1d commit f6f5cc5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Remove `--skip-wait`
- Remove `--preview`
- Remove `--scale`

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ OPTIONS:
--shutdown For doing a shutdown at the end (needs sudo)
--skip-chapterer Skips the chapterer
--skip-fps-changer Skips the fps changer
--skip-wait Skips the wait time for reading
-V, --version Print version information
```

Expand Down
7 changes: 0 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::commanders::selector::select;
use crate::helpers::str_helper::create_order_of_merging;
use clap::ArgMatches;
use cli::Cli;
use core::time;
use helpers::io_helper::create;
use helpers::io_helper::create_tmp_dir;
use helpers::io_helper::exit_when_ffmpeg_not_available;
Expand All @@ -17,7 +16,6 @@ use lazy_static::lazy_static;
use path_slash::PathExt;
use std::io::Error;
use std::path::Path;
use std::thread;
use system_shutdown::shutdown;
use term_painter::Color::BrightBlue;
use term_painter::ToStyle;
Expand All @@ -39,7 +37,6 @@ fn main() -> Result<(), Error> {
let should_shutdown = matches.is_present("shutdown");
let skip_fps_changer = matches.is_present("skip-fps-changer");
let skip_chapterer = matches.is_present("skip-chapterer");
let skip_wait = matches.is_present("skip-wait");
let fps_from_cli = matches
.value_of("fps")
.unwrap_or("0")
Expand All @@ -58,10 +55,6 @@ fn main() -> Result<(), Error> {
if *VERBOSE {
println!("\n\n📜 Order of merging:\n");
println!("{}\n", create_order_of_merging(&ffmpeg_input_content));
if !skip_wait {
println!("\n⏳ Waiting 3 seconds to read");
thread::sleep(time::Duration::from_secs(3));
}
}

let tmp_dir = create_tmp_dir();
Expand Down
7 changes: 0 additions & 7 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ mod integration {
let res = get_output(
Command::cargo_bin(BIN)
.unwrap()
.arg("--skip-wait")
.arg(format!("data/{}", test_name))
.assert()
.success(),
Expand All @@ -60,7 +59,6 @@ mod integration {
let res = get_output(
Command::cargo_bin(BIN)
.unwrap()
.arg("--skip-wait")
.arg(format!("data/{}", test_name))
.assert()
.success(),
Expand Down Expand Up @@ -103,7 +101,6 @@ mod integration {
let res = get_output(
Command::cargo_bin(BIN)
.unwrap()
.arg("--skip-wait")
.arg("--verbose")
.arg(format!("data/{}", test_name))
.assert()
Expand Down Expand Up @@ -133,7 +130,6 @@ mod integration {
fn call_merger_against_mp4() {
Command::cargo_bin(BIN)
.unwrap()
.arg("--skip-wait")
.args(&["--format", "mp4"])
.arg("data")
.assert()
Expand All @@ -158,7 +154,6 @@ mod integration {
let res = get_output_err(
Command::cargo_bin(BIN)
.unwrap()
.arg("--skip-wait")
.arg(format!("data/{}", test_name))
.assert()
.success(),
Expand All @@ -177,7 +172,6 @@ mod integration {
let res = get_output_err(
Command::cargo_bin(BIN)
.unwrap()
.arg("--skip-wait")
.args(["--fps", "25"])
.arg(format!("data/{}", test_name))
.assert()
Expand All @@ -200,7 +194,6 @@ mod integration {
get_output_err(
Command::cargo_bin(BIN)
.unwrap()
.arg("--skip-wait")
.arg(format!("data/{}", test_name))
.arg("--skip-fps-changer")
.assert()
Expand Down

0 comments on commit f6f5cc5

Please sign in to comment.