Skip to content

Commit

Permalink
fix: --show-colors, --json not showing without an image
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Dec 14, 2023
1 parent 41cc57b commit 8be1dc3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ fn main() -> Result<(), Report> {
amoled_android: SchemeAndroid::pure_dark_from_core_palette(&mut palette),
};

if args.show_colors == Some(true) {
show_color(&schemes, &source_color);
}

if let Some(format) = args.json {
dump_json(&schemes, &source_color, format);
}

if args.dry_run == Some(false) {
Template::generate(&schemes, &config.templates, &args.source, &config.config.prefix, &source_color, &default_scheme, config.config.custom_keywords)?;

Expand Down Expand Up @@ -123,14 +131,6 @@ fn main() -> Result<(), Report> {
}
}

if args.show_colors == Some(true) {
show_color(&schemes, &source_color);
}

if let Some(format) = args.json {
dump_json(&schemes, &source_color, format);
}

Ok(())
}

Expand Down

0 comments on commit 8be1dc3

Please sign in to comment.