ignor 0.2.0

a command line utility to fetch .gitignore tempaltes from gitignore.io.
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 28.56 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 453.9 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 33s Average build duration of successful builds.
  • all releases: 33s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • thara/ignor
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thara

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