mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-16 01:05:02 +01:00
make things cool and good and wow
This commit is contained in:
parent
958383f991
commit
d9f3f347e9
8 changed files with 486 additions and 41 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -1,13 +1,7 @@
|
|||
use std::path::Path;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use anyhow::Result;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let dir = std::env::args().nth(1).context("expected an argument")?;
|
||||
|
||||
cargo_minimize::minimize(&Path::new(&dir))?;
|
||||
|
||||
println!("Exit");
|
||||
cargo_minimize::minimize()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue