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
Extras for Windows users
patched-cli
only supports Windows using WSL(Windows Subsystem for Linux). Please consult WSL install for more information.
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-1.1.4.tar.gz
(2.4 MB
view details)
Built Distribution
File details
Details for the file patched_cli-1.1.4.tar.gz
.
File metadata
- Download URL: patched_cli-1.1.4.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90fc3ecaf4f6b7684bdc3762481c2245a076e5364a8c3a9e2010795ea0eb2ec |
|
MD5 | c30bc462849a417cd05e69556c01621d |
|
BLAKE2b-256 | 106a6917ff5f9e2b5bffa4b1c7231c750ad543ff0e3f1b4f4f3edf28a609de41 |
File details
Details for the file patched_cli-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: patched_cli-1.1.4-py3-none-any.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d8b278996b996023563b2f176b906e4f0704d5eaeb74e91ef7ed89469a2422 |
|
MD5 | 25a51a1ec837f8312bbbdcf405ed81f6 |
|
BLAKE2b-256 | eaf9226083fa454d1f06408342ac4ecc3a027cf89409d32ed42bfc501c48a902 |