slackhive 0.1.5 → 0.1.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/dist/commands/init.js +7 -2
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -35,7 +35,7 @@ async function init(opts) {
|
|
|
35
35
|
console.log('');
|
|
36
36
|
// ── Check prerequisites ────────────────────────────────────────────────────
|
|
37
37
|
const checks = [
|
|
38
|
-
{ name: 'Docker', cmd: 'docker
|
|
38
|
+
{ name: 'Docker', cmd: 'docker info' },
|
|
39
39
|
{ name: 'Docker Compose', cmd: 'docker compose version' },
|
|
40
40
|
{ name: 'Git', cmd: 'git --version' },
|
|
41
41
|
];
|
|
@@ -45,7 +45,12 @@ async function init(opts) {
|
|
|
45
45
|
console.log(chalk_1.default.green(' ✓') + ` ${check.name} found`);
|
|
46
46
|
}
|
|
47
47
|
catch {
|
|
48
|
-
|
|
48
|
+
if (check.name === 'Docker') {
|
|
49
|
+
console.log(chalk_1.default.red(' ✗ Docker daemon is not running. Please start Docker Desktop and try again.'));
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.log(chalk_1.default.red(` ✗ ${check.name} not found. Please install it first.`));
|
|
53
|
+
}
|
|
49
54
|
process.exit(1);
|
|
50
55
|
}
|
|
51
56
|
}
|