Skip to content
/ ignor Public

a command line utility to fetch .gitignore tempaltes from gitignore.io.

License

Notifications You must be signed in to change notification settings

thara/ignor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a command line utility to fetch .gitignore tempaltes from gitignore.io.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages