zapdev 2.0.0 → 2.1.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/README.md +1 -0
- package/dist/cli.js +11 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -127,6 +127,7 @@ zapdev commit
|
|
|
127
127
|
| `--effort <effort>` | Override the reasoning effort |
|
|
128
128
|
| `-t, --type <type>` | Force an exact lowercase Conventional Commit type (`feat`, `fix`, `chore`, etc.) |
|
|
129
129
|
| `-p, --push` | Skip push confirmation and push the current branch |
|
|
130
|
+
| `--no-push`, `--push=false` | Keep commits local without push confirmation |
|
|
130
131
|
| `--pull` | Pull fast-forward updates only in repositories with changes to commit and an upstream remote |
|
|
131
132
|
| `-s, --staged` | Commit only changes that are already staged |
|
|
132
133
|
| `-y, --yes` | Skip commit review; still confirm push unless `--push` is set |
|
package/dist/cli.js
CHANGED
|
@@ -1736,7 +1736,7 @@ function _getBuiltinFlags(long, short, userNames, userAliases) {
|
|
|
1736
1736
|
// package.json
|
|
1737
1737
|
var package_default = {
|
|
1738
1738
|
name: "zapdev",
|
|
1739
|
-
version: "2.
|
|
1739
|
+
version: "2.1.1",
|
|
1740
1740
|
description: "Fast, performant and lightweight git chores and dev tools using your terminal and an OpenAI-compatible LLM endpoint.",
|
|
1741
1741
|
type: "module",
|
|
1742
1742
|
bin: {
|
|
@@ -2524,7 +2524,8 @@ var commitCommand = defineCommand({
|
|
|
2524
2524
|
push: {
|
|
2525
2525
|
type: "boolean",
|
|
2526
2526
|
alias: "p",
|
|
2527
|
-
description: "Skip push confirmation and push the current branch."
|
|
2527
|
+
description: "Skip push confirmation and push the current branch.",
|
|
2528
|
+
negativeDescription: "Keep commits local without push confirmation."
|
|
2528
2529
|
},
|
|
2529
2530
|
pull: {
|
|
2530
2531
|
type: "boolean",
|
|
@@ -2649,7 +2650,7 @@ var commitCommand = defineCommand({
|
|
|
2649
2650
|
toSend.push(draft);
|
|
2650
2651
|
}
|
|
2651
2652
|
if (toSend.length === 0) return;
|
|
2652
|
-
if (!interactive && !args.push) return;
|
|
2653
|
+
if (args.push === false || !interactive && !args.push) return;
|
|
2653
2654
|
const destinations = [];
|
|
2654
2655
|
for (const { repo, label } of toSend) {
|
|
2655
2656
|
const branch = await currentBranch(repo);
|
|
@@ -2669,10 +2670,13 @@ var commitCommand = defineCommand({
|
|
|
2669
2670
|
}
|
|
2670
2671
|
shouldPush = answer;
|
|
2671
2672
|
}
|
|
2672
|
-
if (shouldPush) {
|
|
2673
|
-
|
|
2674
|
-
await
|
|
2675
|
-
|
|
2673
|
+
if (shouldPush && destinations.length) {
|
|
2674
|
+
await runTask("Pushing repositories in parallel", "Repositories pushed", async (onOutput) => {
|
|
2675
|
+
const results2 = await Promise.allSettled(destinations.map(({ repo, branch, remote }) => push(repo, remote, branch, void 0, onOutput)));
|
|
2676
|
+
for (const [index, result] of results2.entries()) {
|
|
2677
|
+
if (result.status === "rejected") throw new Error(`${destinations[index].label}: ${errorMessage(result.reason)}`);
|
|
2678
|
+
}
|
|
2679
|
+
});
|
|
2676
2680
|
}
|
|
2677
2681
|
if (interactive) outro("Done.");
|
|
2678
2682
|
} catch (error) {
|