ignor

Crates.ioignor
lib.rsignor
version0.2.0
sourcesrc
created_at2017-11-14 22:14:18.615391
updated_at2021-07-04 12:23:45.943284
descriptiona command line utility to fetch .gitignore tempaltes from gitignore.io.
homepage
repositoryhttps://github.com/thara/ignor
max_upload_size
id39370
size28,569
Tomochika Hara (thara)

documentation

README

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(())
}
Commit count: 13

cargo fmt