patchy-cli 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -7
- package/assets/logo.png +0 -0
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://github.com/richardgill/patchy">
|
|
3
|
+
<img width="180" src="./assets/logo.png" alt="Patchy logo">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
<br/>
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/patchy-cli"><img src="https://img.shields.io/npm/v/patchy-cli.svg?label=version" alt="npm package"></a>
|
|
9
|
+
<a href="https://github.com/richardgill/patchy/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/patchy-cli.svg" alt="license"></a>
|
|
10
|
+
<a href="https://github.com/richardgill/patchy/actions/workflows/ci.yml"><img src="https://github.com/richardgill/patchy/actions/workflows/ci.yml/badge.svg?branch=main" alt="build status"></a>
|
|
11
|
+
</p>
|
|
12
|
+
<br/>
|
|
13
|
+
|
|
14
|
+
# Patchy 🩹
|
|
15
|
+
|
|
16
|
+
> A CLI for generating and applying patches to git repositories.
|
|
4
17
|
|
|
5
18
|
## Patches vs forks
|
|
6
19
|
|
|
@@ -22,11 +35,11 @@ Starting a patch-based fork of https://github.com/octocat/spoon-knife.
|
|
|
22
35
|
|
|
23
36
|
Create a folder for the fork: `mkdir spoon-knife-fork && cd spoon-knife-fork`
|
|
24
37
|
|
|
25
|
-
- [Install Patchy](#
|
|
38
|
+
- [Install Patchy](#installation)
|
|
26
39
|
- Run `patchy init`
|
|
27
40
|
- press enter to select all the default options
|
|
28
41
|
|
|
29
|
-
`patchy init` creates your config: `./patchy.json` ([full reference](#patchyjson))
|
|
42
|
+
`patchy init` creates your config: `./patchy.json` ([full reference](#patchyjson-reference))
|
|
30
43
|
```json5
|
|
31
44
|
{
|
|
32
45
|
"repo_url": "https://github.com/octocat/spoon-knife",
|
|
@@ -159,11 +172,11 @@ patchy init
|
|
|
159
172
|
```
|
|
160
173
|
Precedence: CLI flags > Environment variables > `patchy.json`
|
|
161
174
|
|
|
162
|
-
`patchy.json`
|
|
175
|
+
`patchy.json` uses jsonc, so comments are allowed.
|
|
163
176
|
|
|
164
177
|
## Patch file layout
|
|
165
178
|
|
|
166
|
-
The `patches/` directory (customizable via [`patches_dir`](#patchyjson)) uses the same folder structure as `repo_dir`:
|
|
179
|
+
The `patches/` directory (customizable via [`patches_dir`](#patchyjson-reference)) uses the same folder structure as `repo_dir`:
|
|
167
180
|
|
|
168
181
|
```
|
|
169
182
|
./
|
package/assets/logo.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchy-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "A CLI tool for managing Git patch workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|
|
11
|
-
"schema.json"
|
|
11
|
+
"schema.json",
|
|
12
|
+
"assets"
|
|
12
13
|
],
|
|
13
14
|
"scripts": {
|
|
14
15
|
"build": "bun run ./scripts/build.ts",
|
|
@@ -61,11 +62,11 @@
|
|
|
61
62
|
"url": "https://github.com/richardgill/patchy"
|
|
62
63
|
},
|
|
63
64
|
"optionalDependencies": {
|
|
64
|
-
"patchy-cli-linux-x64": "0.0.
|
|
65
|
-
"patchy-cli-linux-arm64": "0.0.
|
|
66
|
-
"patchy-cli-darwin-x64": "0.0.
|
|
67
|
-
"patchy-cli-darwin-arm64": "0.0.
|
|
68
|
-
"patchy-cli-windows-x64": "0.0.
|
|
65
|
+
"patchy-cli-linux-x64": "0.0.6",
|
|
66
|
+
"patchy-cli-linux-arm64": "0.0.6",
|
|
67
|
+
"patchy-cli-darwin-x64": "0.0.6",
|
|
68
|
+
"patchy-cli-darwin-arm64": "0.0.6",
|
|
69
|
+
"patchy-cli-windows-x64": "0.0.6"
|
|
69
70
|
},
|
|
70
71
|
"publishConfig": {
|
|
71
72
|
"access": "public"
|