@hyperdrive.bot/gut 0.2.5-alpha.0 → 0.2.6-alpha.0
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 -1
- package/dist/commands/repos.js +18 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/commands/repos.js
CHANGED
|
@@ -46,7 +46,24 @@ export default class Repos extends BaseCommand {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
if (entities.length === 0) {
|
|
49
|
-
|
|
49
|
+
// HYP-64: empty result is a valid state, not an error. Previously this used
|
|
50
|
+
// `this.error()` which exited with code 1 + stderr — confusing for scripts
|
|
51
|
+
// that pipeline `gut repos | <cmd>` and treat empty as "nothing to do".
|
|
52
|
+
if (flags.json) {
|
|
53
|
+
this.log(JSON.stringify([], null, 2));
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const filterHint = flags.type ? ` of type "${flags.type}"` : '';
|
|
57
|
+
const accessibleHint = flags.accessible ? ' that exist on disk' : '';
|
|
58
|
+
this.log(chalk.yellow(`No accessible repositories${filterHint}${accessibleHint} found.`));
|
|
59
|
+
if (flags.accessible) {
|
|
60
|
+
this.log(chalk.dim(' Hint: run `gut entity clone-all` to clone configured entities.'));
|
|
61
|
+
}
|
|
62
|
+
else if (flags.type) {
|
|
63
|
+
this.log(chalk.dim(' Hint: run `gut entity list` to see all registered entity types.'));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return;
|
|
50
67
|
}
|
|
51
68
|
// Collect repository information
|
|
52
69
|
const repos = [];
|
package/package.json
CHANGED