Skip to content

Commit

Permalink
Use calm-io (#50)
Browse files Browse the repository at this point in the history
Closes #49
  • Loading branch information
9999years authored Dec 18, 2023
1 parent a9db4d4 commit 39e6c08
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
35 changes: 33 additions & 2 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ categories = ["command-line-utilities"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
calm_io = "0.1.1"
camino = "1.1.4"
clap = { version = "4.3.4", features = ["derive", "wrap_help", "env"] }
color-eyre = "0.6.2"
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
use std::os::unix::process::CommandExt;
use std::process;

use calm_io::stdout as println;
use camino::Utf8Path;
use camino::Utf8PathBuf;
use clap::Parser;
Expand Down Expand Up @@ -137,7 +138,7 @@ fn main() -> eyre::Result<()> {
shell_code = shell_code.replace("nix-your-shell", current_exe.as_str());
}

println!("{shell_code}");
let _ = println!("{shell_code}");
Ok(())
}

Expand Down

0 comments on commit 39e6c08

Please sign in to comment.