From 925edcb9db3ee33952f2a4c6a8c5d2283530f16d Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 12 May 2023 11:17:44 -0400 Subject: [PATCH] update dependencies --- Cargo.toml | 10 +++++----- src/main.rs | 4 ++++ src/options.rs | 14 +++++++------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b195280..675bb1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,9 +7,9 @@ edition = "2021" [dependencies] image = "0.24" -glob = "0.3.0" -clap = { version = "3.2.20", features = ["derive"] } -open = "3.0.2" -codevis = "0.4.0" +glob = "0.3.1" +clap = { version = "4.2.7", features = ["derive"] } +open = "4.1.0" +codevis = "0.8.3" prodash = { version = "20.0.1", features = ["render-line", "render-line-crossterm", "signal-hook", "render-line-autoconfigure", "progress-tree", "unit-bytes"] } -syntect = "5.0.0" \ No newline at end of file +syntect = "5.0.0" diff --git a/src/main.rs b/src/main.rs index c115535..a86215e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -145,6 +145,8 @@ fn main() { let opts = codevis::render::Options { column_width: 100, line_height: 2, + readable: false, + show_filenames: false, target_aspect_ratio: args.width as f64 / args.height as f64, threads: 0, highlight_truncated_lines: false, @@ -156,6 +158,8 @@ fn main() { plain: false, display_to_be_processed_file: false, color_modulation: 0.3, + tab_spaces: 4, + line_nums: false, }; let progress: Arc = prodash::TreeOptions { diff --git a/src/options.rs b/src/options.rs index 76932f5..90cb71c 100644 --- a/src/options.rs +++ b/src/options.rs @@ -5,30 +5,30 @@ pub struct Args { /// An example: /// /// https://github.com/sloganking/codemov - #[clap(long, short = 'r', help_heading = "INPUT")] + #[arg(long, short = 'r', help_heading = "INPUT")] pub repo: String, /// The branch of the repository to be rendered. - #[clap(long, short = 'b', help_heading = "INPUT")] + #[arg(long, short = 'b', help_heading = "INPUT")] pub branch: String, /// Open the output video with the system's default image viewer. - #[clap(long, help_heading = "OUTPUT")] + #[arg(long, help_heading = "OUTPUT")] pub open: bool, /// The width of the output video. - #[clap(long, default_value_t = 1920, help_heading = "OUTPUT")] + #[arg(long, default_value_t = 1920, help_heading = "OUTPUT")] pub width: u32, /// The height of the output video. - #[clap(long, default_value_t = 1080, help_heading = "OUTPUT")] + #[arg(long, default_value_t = 1080, help_heading = "OUTPUT")] pub height: u32, /// The frames per second the output video will have. - #[clap(long, default_value_t = 15, help_heading = "OUTPUT")] + #[arg(long, default_value_t = 15, help_heading = "OUTPUT")] pub fps: u32, /// Where to save the output file and what name to give it. - #[clap(long, short = 'o', default_value_t = String::from("./output.mp4"), help_heading = "OUTPUT")] + #[arg(long, short = 'o', default_value_t = String::from("./output.mp4"), help_heading = "OUTPUT")] pub output_dir: String, }