Crates.io | ignor |
lib.rs | ignor |
version | 0.2.0 |
source | src |
created_at | 2017-11-14 22:14:18.615391 |
updated_at | 2021-07-04 12:23:45.943284 |
description | a command line utility to fetch .gitignore tempaltes from gitignore.io. |
homepage | |
repository | https://github.com/thara/ignor |
max_upload_size | |
id | 39370 |
size | 28,569 |
ignor
is a command line utility to fetch .gitignore tempaltes from gitignore.io.
$ cargo install ignor
List
$ ignor
Print all available .gitignore tempaltes on gitignore.io.
Search
$ ignor rust intellij
Print .gitignore content generated by gitignore.io.
You can make a .gitignore using Unix redirect.
$ ignor rust intellij > .gitignore
ignor
is written by Rust and also is able to used as a Rust library.
(ignor
uses reqwest of http client)
extern crate ignor;
extern crate reqwest;
#[macro_use]
extern crate error_chain;
error_chain!{
foreign_links {
ReqError(reqwest::Error);
IoError(std::io::Error);
}
}
quick_main!(run);
fn run() -> Result<()> {
let res = ignor::list();
let _ = std::io::copy(&mut res?, &mut std::io::stdout())?;
Ok(())
}