GithubHelp home page GithubHelp logo

rooster's Introduction

Rooster

LogoMakr_7ZIRlg

Rooster is a file filter for version control systems.

Installation

  1. Clone the repo

git clone https://github.com/SheetJS/rooster.git rooster

  1. Run go build
cd rooster
go build

Usage

In order to use rooster a config file must be provided:

Usage of ./rooster:
  -config string
        Rooster's config file (default ".rooster.yaml")

The layout of the .rooster.yaml is as follows:

- repo: https://github.com/foo/bar
  extensions:
    - docx
    - doc
    - xlsx
  out: foo_bar

- repo: https://github.com/baz/qux
  type: svn
  extensions:
    - .docx
    - .doc
    - xlsx
  out: baz_qux

- repo: https://github.com/quux/corge
  type: hg
  extensions:
    - md
    - "*.x*"

Each object must have the following keys:

  • repo: The repository's URL
  • extension: An array of extensions to filter for

Note the following:

  1. The leading . is optional, unless shell patterns are used (see below).
  2. Standard shell patterns (as defined here) may be used.
    • If a shell pattern is used then the leading . becomes mandatory, and the extension must be enclosed in quotes.

The following keys are optional:

  • type: The version control system to use (supported options: git,svn,hg) [default: git]
  • out: The output directory to save the filtered files to (default: rooster_output_xxxx)

Example Output

Once rooster is done each filtered repository will have a output directory similar to the one below:

rooster_output_xxx
โ”œโ”€โ”€ doc
โ”œโ”€โ”€ docx
โ””โ”€โ”€ txt

Where all docx files will be in the docx directory and all the doc files will be in the doc folder, etc, etc.

Dependencies

You'll need to have your vcs provider installed on your system. An exception to this is git as rooster uses a go-based implementation of git.

The currently supported vcs'es are:

  • Git
  • Subversion
  • Mercurial

Credits

Logo

Created at LogoMakr.com

go-git

For the awesome git library written in pure go.

go-yaml

For the awesome YAML parser.

rooster's People

Contributors

penguingovernor avatar harbhub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.