2 unstable releases
Uses old Rust 2015
0.2.0 | Jul 4, 2021 |
---|---|
0.1.0 | Nov 14, 2017 |
#30 in #gitignore
9KB
ignor
ignor
is a command line utility to fetch .gitignore tempaltes from gitignore.io.
Installation
$ cargo install ignor
Usage
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
Use as a library
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(())
}
Dependencies
~4–16MB
~209K SLoC