@cruxgarden/cli 0.0.5 → 0.0.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/bin/crux.js +4 -4
- package/lib/commands.js +3 -3
- package/package.json +1 -1
package/bin/crux.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
logsNursery,
|
|
13
13
|
cleanNursery,
|
|
14
14
|
purgeNursery,
|
|
15
|
-
|
|
15
|
+
updateNursery,
|
|
16
16
|
resetNursery,
|
|
17
17
|
connectNurseryDb,
|
|
18
18
|
connectNurseryRedis,
|
|
@@ -80,9 +80,9 @@ nursery
|
|
|
80
80
|
.action(purgeNursery);
|
|
81
81
|
|
|
82
82
|
nursery
|
|
83
|
-
.command("
|
|
84
|
-
.description("
|
|
85
|
-
.action(
|
|
83
|
+
.command("update")
|
|
84
|
+
.description("Download the latest API image from ghcr.io")
|
|
85
|
+
.action(updateNursery);
|
|
86
86
|
|
|
87
87
|
nursery
|
|
88
88
|
.command("reset")
|
package/lib/commands.js
CHANGED
|
@@ -315,16 +315,16 @@ export async function purgeNursery() {
|
|
|
315
315
|
console.log();
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
export async function
|
|
318
|
+
export async function updateNursery() {
|
|
319
319
|
const spinner = ora(
|
|
320
|
-
"
|
|
320
|
+
"Downloading latest Crux Garden API image from ghcr.io...",
|
|
321
321
|
).start();
|
|
322
322
|
|
|
323
323
|
await runCommandAsync("docker-compose -f docker-compose.nursery.yml pull", {
|
|
324
324
|
silent: true,
|
|
325
325
|
});
|
|
326
326
|
|
|
327
|
-
spinner.succeed("Latest nursery image
|
|
327
|
+
spinner.succeed("Latest nursery image downloaded!");
|
|
328
328
|
console.log(
|
|
329
329
|
chalk.gray("Run"),
|
|
330
330
|
chalk.cyan("crux nursery restart"),
|