Skip to content

Commit

Permalink
feat: 0.2.16 Print warranty info after version splash (#165)
Browse files Browse the repository at this point in the history
- Move `print_warranty_info()` call version splash print
  - Closes #159 
- Bump deps
  • Loading branch information
jgabaut authored Aug 10, 2024
1 parent 77fb882 commit 657fd53
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 36 deletions.
62 changes: 35 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "invil"
description = "A port of amboso to Rust"
version = "0.2.15"
version = "0.2.16"
edition = "2021"
license = "GPL-3.0-only"
homepage = "https://github.com/jgabaut/invil"
Expand All @@ -24,13 +24,13 @@ anvilPy = ["dep:flate2", "dep:tar", "dep:url"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.5.8", features = ["derive"] }
flate2 = { version = "1.0.30", optional = true }
clap = { version = "4.5.14", features = ["derive"] }
flate2 = { version = "1.0.31", optional = true }
git2 = "0.19.0"
is_executable = "1.0.1"
log = "0.4.22"
regex = "1.10.5"
regex = "1.10.6"
simplelog = "0.12.2"
tar = { version = "0.4.41", optional = true }
toml = "0.8.14"
toml = "0.8.19"
url = { version = "2.5.2", optional = true }
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ fn main() -> ExitCode {

let log_level;

if args.warranty {
print_warranty_info();
}

if args.version {
if args.verbose > 3 {
println!("invil, v{} (Compat: v{})",INVIL_VERSION, args.anvil_version.expect("Failed initialising anvil_version"));
Expand Down Expand Up @@ -150,6 +146,10 @@ fn main() -> ExitCode {
println!("{}", invil_splash);
}

if args.warranty {
print_warranty_info();
}

match args.command {
Some(Commands::Init { init_dir }) => {
return handle_init_subcommand(init_dir, args.strict);
Expand Down

0 comments on commit 657fd53

Please sign in to comment.