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(())
}