@kaynooo/cli-git 0.10.0 → 0.10.1
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/dist/gb.js +19 -6
- package/dist/gc.js +2 -0
- package/dist/gst.js +2 -0
- package/package.json +2 -2
package/dist/gb.js
CHANGED
|
@@ -1153,6 +1153,8 @@ async function runMain({ name, version, run, redact, usage }, argv = process12.a
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return code;
|
|
1155
1155
|
}
|
|
1156
|
+
// ../kit/src/folders.ts
|
|
1157
|
+
var SKIPPED_FOLDERS = new Set(["node_modules", "vendor", "dist", "build", "target", "coverage", "venv", "__pycache__"]);
|
|
1156
1158
|
// ../kit/src/secrets.ts
|
|
1157
1159
|
var SECRET_WORDS = new Set(["key", "pass", "pwd", "auth", "salt", "cookie", "session", "jwt", "ssn", "iban", "card", "cvv", "otp"]);
|
|
1158
1160
|
// ../kit/src/sessions.ts
|
|
@@ -1690,14 +1692,24 @@ function up(lines) {
|
|
|
1690
1692
|
return lines > 0 ? `\x1B[${lines}A` : "";
|
|
1691
1693
|
}
|
|
1692
1694
|
function openTerminal() {
|
|
1693
|
-
let
|
|
1695
|
+
let mode;
|
|
1694
1696
|
try {
|
|
1695
|
-
|
|
1697
|
+
mode = new tty.ReadStream(openSync("/dev/tty", "r"));
|
|
1696
1698
|
} catch {
|
|
1697
1699
|
return fail("no terminal to read keys from (/dev/tty)");
|
|
1698
1700
|
}
|
|
1701
|
+
const keys = Bun.file("/dev/tty").stream().getReader();
|
|
1699
1702
|
const out = process16.stderr;
|
|
1700
1703
|
let resize;
|
|
1704
|
+
async function read(onChunk) {
|
|
1705
|
+
const decoder = new TextDecoder;
|
|
1706
|
+
try {
|
|
1707
|
+
for (let chunk = await keys.read();!chunk.done; chunk = await keys.read())
|
|
1708
|
+
onChunk(decoder.decode(chunk.value, { stream: true }));
|
|
1709
|
+
} catch {
|
|
1710
|
+
onChunk("\x03");
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1701
1713
|
return {
|
|
1702
1714
|
get columns() {
|
|
1703
1715
|
return out.columns || 80;
|
|
@@ -1709,17 +1721,18 @@ function openTerminal() {
|
|
|
1709
1721
|
write: (text) => void out.write(text),
|
|
1710
1722
|
listen(onChunk, onResize) {
|
|
1711
1723
|
resize = onResize;
|
|
1712
|
-
|
|
1724
|
+
mode.setRawMode(true);
|
|
1713
1725
|
out.on("resize", onResize);
|
|
1714
|
-
|
|
1726
|
+
read(onChunk);
|
|
1715
1727
|
},
|
|
1716
1728
|
close() {
|
|
1717
1729
|
if (resize !== undefined)
|
|
1718
1730
|
out.off("resize", resize);
|
|
1719
1731
|
try {
|
|
1720
|
-
|
|
1732
|
+
mode.setRawMode(false);
|
|
1721
1733
|
} finally {
|
|
1722
|
-
|
|
1734
|
+
mode.destroy();
|
|
1735
|
+
keys.cancel();
|
|
1723
1736
|
}
|
|
1724
1737
|
}
|
|
1725
1738
|
};
|
package/dist/gc.js
CHANGED
|
@@ -1153,6 +1153,8 @@ async function runMain({ name, version, run, redact, usage }, argv = process12.a
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return code;
|
|
1155
1155
|
}
|
|
1156
|
+
// ../kit/src/folders.ts
|
|
1157
|
+
var SKIPPED_FOLDERS = new Set(["node_modules", "vendor", "dist", "build", "target", "coverage", "venv", "__pycache__"]);
|
|
1156
1158
|
// ../kit/src/secrets.ts
|
|
1157
1159
|
var SECRET_WORDS = new Set(["key", "pass", "pwd", "auth", "salt", "cookie", "session", "jwt", "ssn", "iban", "card", "cvv", "otp"]);
|
|
1158
1160
|
// ../kit/src/sessions.ts
|
package/dist/gst.js
CHANGED
|
@@ -1153,6 +1153,8 @@ async function runMain({ name, version, run, redact, usage }, argv = process12.a
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return code;
|
|
1155
1155
|
}
|
|
1156
|
+
// ../kit/src/folders.ts
|
|
1157
|
+
var SKIPPED_FOLDERS = new Set(["node_modules", "vendor", "dist", "build", "target", "coverage", "venv", "__pycache__"]);
|
|
1156
1158
|
// ../kit/src/secrets.ts
|
|
1157
1159
|
var SECRET_WORDS = new Set(["key", "pass", "pwd", "auth", "salt", "cookie", "session", "jwt", "ssn", "iban", "card", "cvv", "otp"]);
|
|
1158
1160
|
// ../kit/src/sessions.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-git",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"description": "gst, gc and gb: a repository's state in one call, a commit of exactly the paths given, its message checked before anything is staged, and a branch picked.",
|
|
6
6
|
"author": "Kaynooo <contact@kaynooo.fr>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"gb": "$npm_execpath src/gb.ts"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@kaynooo/cli-kit": "0.
|
|
47
|
+
"@kaynooo/cli-kit": "0.27.1"
|
|
48
48
|
}
|
|
49
49
|
}
|