Metadata-Version: 2.1
Name: repos
Version: 0.1.12
Summary: Manages git repos inside a directory
Home-page: https://github.com/jpedro/repos
Download-URL: https://github.com/jpedro/repos/tarball/master
Author: jpedro
Author-email: jpedro.barbosa@gmail.com
License: MIT
Keywords: git repos
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown

# Repos

[![PyPI version](https://badge.fury.io/py/repos.svg)](https://badge.fury.io/py/repos)
[![Unstable package](https://img.shields.io/badge/_Unstable_package_-_This_code_is_a_work_in_progress_-red)](https://semver.org)


Manages git repos inside a directory.


## Install

    pip install repos


## Usage

Inside a directory with several git repos run:

    $ repos
    Repos in /Users/hello/repos

    STATUS              NAME                            BRANCH
    ────────────────    ────────────────────────────    ──────────
    •   •  1↑  •  •     this-is-a-ahead-repo              master
    •  1↓   •  •  •     this-is-a-behind-repo             master
    •   •   •  •  •     this-is-a-clean-repo              master
                        this-is-a-directory/
    1±      ⚑  •  •     this-is-a-dirty-repo              master
    •   ⚑         •     this-repo-has-no-remotes          master
    •   •   •  •  3     this-repo-has-three-branches      branch-3
    •   •   •  2  •     this-repo-has-two-remotes         master

            1 directories
            1 without a remote ⚑
            1 without upstream ⚑
            1 changed
            1 behind
            1 ahead
            4 clean

To check all available commands:

```
$ repos help
NAME
    repos —  Manages your git repos

USAGE
    repos                       # Lists all repos in text format
    repos export --json         # Exports all repos as json
    repos export --yaml         # Exports all repos as yaml
    repos show REPO             # Shows the repo details
    repos save                  # Commits local changes
    repos push                  # Pushes up to the upstream
    repos pull                  # Pulls from the upstream
    repos sync                  # Pull from the upstream and pushes up
    repos help                  # Shows this help
    repos version               # Prints the current version
```


## Todos

- Code the `repos add <url>` subcommand to clone a git repo from
  an url.

- Code the `repos install [file]` subcommand to clone git repos
  from a file, by default `repos.yaml`.

- Code the `repos config [repo] [key] [value]` subcommand to
  store `git config repos.*` in `./.git/config` file.

- Code the `repos save [repo] [--yes]` subcommand to commit all
  changes (obeys the `repo.save = always | never | ask` git config).

- Code the `repos push [repo] [--yes]` subcommand to send all
  commits to the upstream (obeys the `repo.push = always | never | ask`
  git config).

- Code the `repos pull [repo] [--yes]` subcommand to pull all the
  latest commits from the upstream (obeys the `repo.pull = always |
  never | ask` git config).

- Code the `repos sync [repo] [--yes]` subcommand to commits all
  changes, pull the latest commits, and push local commits to the
  upstream (obeys the `repo.sync = always | never | ask` git config).

- Code the `repos.enabled` git config to turn off all other `repos.*`
  configs.
