worktree-flow 0.0.21 → 0.0.22
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/commands/checkout.js +4 -1
- package/dist/lib/fetch.js +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export async function runCheckout(branchName, useCases, services, deps) {
|
|
|
8
8
|
const config = services.config.load();
|
|
9
9
|
try {
|
|
10
10
|
// 1. Fetch all repos from source-path
|
|
11
|
-
|
|
11
|
+
console.log('');
|
|
12
12
|
await useCases.fetchAllRepos.execute({
|
|
13
13
|
sourcePath,
|
|
14
14
|
fetchCacheTtlSeconds: config.fetchCacheTtlSeconds,
|
|
@@ -19,6 +19,8 @@ export async function runCheckout(branchName, useCases, services, deps) {
|
|
|
19
19
|
branchName,
|
|
20
20
|
});
|
|
21
21
|
// 3. Display only repos that have changes (matching or errored)
|
|
22
|
+
const discoveredCount = discoverResult.branchCheckResults.filter((r) => r.hasBranch).length;
|
|
23
|
+
console.log(chalk.bold(`\nFound ${discoveredCount} repos with branch "${branchName}"`));
|
|
22
24
|
for (const checkResult of discoverResult.branchCheckResults) {
|
|
23
25
|
if (checkResult.error) {
|
|
24
26
|
services.console.log(`${checkResult.repoName}... ${chalk.red(`error: ${checkResult.error}`)}`);
|
|
@@ -34,6 +36,7 @@ export async function runCheckout(branchName, useCases, services, deps) {
|
|
|
34
36
|
// 5. Prompt for post-checkout
|
|
35
37
|
let shouldRunPostCheckout = false;
|
|
36
38
|
if (config.postCheckout) {
|
|
39
|
+
console.log('');
|
|
37
40
|
shouldRunPostCheckout = await deps.confirm({
|
|
38
41
|
message: `Run "${config.postCheckout}" in all workspaces?`,
|
|
39
42
|
default: true,
|
package/dist/lib/fetch.js
CHANGED
|
@@ -68,7 +68,7 @@ export class FetchService {
|
|
|
68
68
|
await Promise.all(workers);
|
|
69
69
|
if (!silent) {
|
|
70
70
|
// Clear the progress line and show summary
|
|
71
|
-
this.console.write('\r');
|
|
71
|
+
this.console.write('\r\x1b[K');
|
|
72
72
|
const cacheInfo = cachedCount > 0 ? ` (${cachedCount} cached)` : '';
|
|
73
73
|
if (failed > 0) {
|
|
74
74
|
this.console.log(`Fetched ${total - failed}/${total} repos${cacheInfo} ${chalk.yellow(`(${failed} failed)`)}`);
|