patched cli
Project description
Patched!
patched-cli
is a CLI that generates vulnerability patches for your codebase.
Quickstart guide
- Install patched-cli.
pip install patched-cli
- Run
patched-cli
with your git repository as its argument or working directory. When the working directory is the git repositorypatched-cli
When the argument is the git repositorypatched-cli /path/to/my/git/repository
- If this is the first time running
patched-cli
, you will be redirected to patched's sign-in page to generate a token. Copy the token and paste it to the prompt. If this is not the first time runningpatched-cli
an application directory should already exist under your user's home directory if you are using a Unix-based operating system or AppData folder if you are using a windows based operating system. Alternatively you can set the environment variablePATCHED_ACCESS_TOKEN
before runningpatched-cli
.export PATCHED_ACCESS_TOKEN="your-patched-access-token-here" patched-cli
- To create a pull request you can set the
--create-pr
flag.patched-cli --create-pr
Ifpatched.codes
is not installed in your GitHub repository you can givepatched-cli
your GitHub Personal Access Token via the option--github-access-token
or set the environment variablePATCHED_GITHUB_TOKEN
export PATCHED_GITHUB_TOKEN="your.patched.access.token.here" patched-cli --create-pr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
patched_cli-0.0.2.tar.gz
(12.8 kB
view hashes)
Built Distribution
Close
Hashes for patched_cli-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4e2197e62cbae05d9387ddae6fc2812b02ddb028a9492488e43edf3b6c1b092 |
|
MD5 | 98584070d6fd865577e48b2ead957229 |
|
BLAKE2b-256 | 32d3d1b62be5cf6d994bb691076a70fd7039f2c1156de794888cbefa0a7225e8 |