git-codeowners

Crates.iogit-codeowners
lib.rsgit-codeowners
version0.1.2
sourcesrc
created_at2017-07-24 05:34:15.167146
updated_at2017-11-19 23:20:50.796903
descriptionRust cli for working with Github CODEOWNERS files
homepagehttps://github.com/softprops/git-codeowners
repositoryhttps://github.com/softprops/git-codeowners
max_upload_size
id24786
size13,529
cargo (github:rustpq:cargo)

documentation

https://softprops.github.io/git-codeowners

README

git-codeowners Build Status Software License Crates.io

a git extention for Github CODEOWNERS files

Github CODEOWNERS files document ownership over paths within git repositories allowing you to more effectively focus communication with the right people.

install

Homebrew

For osx users, you can use brew to install or update git-codeowners

$ brew install softprops/tools/git-codeowners

To upgrade, just use brew upgrade instead

GH releases

You can download releases for osx and linux directly from github releases

$ cd $HOME/bin
$ curl -L "https://github.com/softprops/git-codeowners/releases/download/v0.1.1/git-codeowners-$(uname -s)-$(uname -m).tar.gz" \
  | tar -xz

Cargo

If you are a rust user can can just use cargo

$ cargo install git-codeowners

usage

git-codeowners is intended for use as a git extention ( a program whose name starts with git- ) to extend your git workflow.

$ git codeowners src/main.rs
@softprops
$ git-codeowners --help
git-codeowners 0.1.1
Github CODEOWNERS answer sheet

USAGE:
    git-codeowners [FLAGS] [OPTIONS] <path>

FLAGS:
    -e, --emails     Only return emails
    -h, --help       Prints help information
    -t, --teams      Only return teams
    -u, --users      Only return users
    -V, --version    Prints version information

OPTIONS:
    -c, --codeowners <codeowners>    An explicit path for a CODEOWNERS file. program will exit 1 if file can not be resolved

ARGS:
    <path>    Path of file in git repo. if '-' is provided path will be read from stdin. program will exit 2 if no owners can be resolved

Doug Tangren (softprops) 2017

Commit count: 32

cargo fmt