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]
Metadata
Release files for gr-cli 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gr-cli-0.4.0.tar.gz | 7.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gr_cli-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / gr-cli-0.4.0.tar.gz
| Download URL | gr-cli-0.4.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
829f0a0e61cdfb67e9ffbcc28091b68eca72cff3b8f289e158993edc29458533
|
|
BLAKE2b-256 checksum How to use checksums |
5e80e30ad8dcb0e2f4a7dcc9b6fe6a59196963d08f81dd6892c50e825cb81e4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
|
Release files / gr_cli-0.4.0-py3-none-any.whl
| Download URL | gr_cli-0.4.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c4fe247ae7383bca493f582324d638450aa2237aa63cc1177e257faf0ae3ced
|
|
BLAKE2b-256 checksum How to use checksums |
b3e4837c1e65968f4eaa4a4ba2e30ebceb64bf365ad734ebe9d59ef2f78c9d6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
|
Security for gr-cli 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.