Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dependencies #14

Merged
merged 1 commit into from May 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.toml
Expand Up @@ -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"
syntect = "5.0.0"
4 changes: 4 additions & 0 deletions src/main.rs
Expand Up @@ -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,
Expand All @@ -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::Tree> = prodash::TreeOptions {
Expand Down
14 changes: 7 additions & 7 deletions src/options.rs
Expand Up @@ -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")]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason this was changed from clap to arg? It seems to still work find if I replace it with clap again.

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,
}