Metadata-Version: 2.1
Name: gerrit-tools
Version: 0.0.1
Summary: Gerrit CLI Tool
Home-page: https://github.com/smotyrev/gerrit_tools
Author: Sergey Motyrev
Author-email: smotyrev@gmail.com
Platform: Any
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Environment :: Console

gerrit_tools
============
Common tools to work with a bunch of Gerrit repositories, with help of REST API and Command Line Tools

Setup
=====
On first run script will prompt to input several params related to your Gerrit instance.
Configuration is stored in `~/.config/gerrit_tools/config` file.
```commandline
$ gerrit_tools ...some command...
Enter value for GERRIT_URL: gerrit.yourserver.org
Enter value for GERRIT_PORT: 29418
Enter value for GERRIT_USER: admin@yourserver.org
Enter value for GERRIT_API_TOKEN: <TOKEN>
```
`<TOKEN>` is generated here: [Gerrit -> Settings -> HTTP Credentials]

Usage
=====
Example deleting `some/temp/branch` on all repositories:
```commandline
$ gerrit_tools branch delete some/temp/branch
```

Example copying `src/branch` to new `dst/branch` on all repositories:
```commandline
$ gerrit_tools branch copy src/branch dst/branch
```
