Gerrit's command line tool
Project description
gr
Gerrit's command line tool
It's like
gh
(GitHub's CLI) but for Gerrit
Installation
pip3 install gr-cli
Auth
Authentication done by HTTP credentials
: https://gerrit.cloudlinux.com/settings/#HTTPCredentials
At first launch, gr
will ask for username and password that you generated at gerrit and write to ~/.config/gr/conf.py
. That's plain python file and you can use it however you want, e.g.:
import os
pswd = os.popen("pass show cl/gr-cli | head -n 1").read().strip()
user = os.popen("pass show cl/gr-cli | grep username").read().strip().split(" ")[-1]
AUTH = (user, pswd)
Usage
> gr ch --help
Usage: main.py ch [OPTIONS] COMMAND [ARGS]...
Manage pull requests
Options:
--help Show this message and exit.
Commands:
abandon Abandon change by ID
add-reviewers Abandon change by ID
checkout Checkout change to new branch
comment Comment change by ID
comments List change comments by ID
create Create change from current branch
diff Show diff by change ID
list List all changes
merge Submit change by ID
rebase Rebase change to target branch by ID
review Review change by ID
status List all CHanges
view View change details
Example
git checkout -b test-gr
echo Changes > file.txt
git add file.txt
git commit -m 'New very important patch'
# push current branch to remote and create PR
gr ch create
gr ch list
gr ch merge [change-id]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gr-cli-0.4.0.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file gr-cli-0.4.0.tar.gz
.
File metadata
- Download URL: gr-cli-0.4.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 829f0a0e61cdfb67e9ffbcc28091b68eca72cff3b8f289e158993edc29458533 |
|
MD5 | 2550ca01c3dab4d4b97f234dc6e158eb |
|
BLAKE2b-256 | 5e80e30ad8dcb0e2f4a7dcc9b6fe6a59196963d08f81dd6892c50e825cb81e4b |
File details
Details for the file gr_cli-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: gr_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c4fe247ae7383bca493f582324d638450aa2237aa63cc1177e257faf0ae3ced |
|
MD5 | 51382b2d4d646f7578c2de09b2c7d9f9 |
|
BLAKE2b-256 | b3e4837c1e65968f4eaa4a4ba2e30ebceb64bf365ad734ebe9d59ef2f78c9d6a |