Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.45 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.45 KB

co: code owners command-line tool

build build

A CLI for GitHub's CODEOWNERS file.

This repository is forked from https://github.com/hmarr/codeowners. This is the most correct implementation of Github's rules engine I've found. Other solutions (e.g., Gitlab) may have differences which may not be featured here.

Installation

Local Usage

You can download a binary from the releases page and put the co binary somewhere in your path.

Usage

co help

Usage:
  co [command]

Available Commands:
  diff        Print a unified diff of file ownership
  fmt         Normalize CODEOWNERS format
  help        Help about any command
  lint        Validate codeowners file
  stats       Display code ownership statistics
  version     Print code version
  who         List code owners for file(s)
  why         Identify which rule effects ownership for a single file.

Flags:
  -f, --file string   CODEOWNERS file path
  -h, --help          help for co

Use "co [command] --help" for more information about a command.