@reliverse/dler 1.7.71 → 1.7.72
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/app/upgrade/cmd.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { re } from "@reliverse/relico";
|
|
1
2
|
import { relinka } from "@reliverse/relinka";
|
|
2
3
|
import { defineArgs, defineCommand, multiselectPrompt } from "@reliverse/rempts";
|
|
3
4
|
import { lookpath } from "lookpath";
|
|
@@ -45,7 +46,7 @@ export default defineCommand({
|
|
|
45
46
|
title: "Select tools to upgrade",
|
|
46
47
|
displayInstructions: true,
|
|
47
48
|
options: [
|
|
48
|
-
{ label: "Exit", value: "exit"
|
|
49
|
+
{ label: "Exit", value: "exit" },
|
|
49
50
|
...availableTools.map(({ name, result }) => {
|
|
50
51
|
const isUpToDate = result && result.status === "up-to-date";
|
|
51
52
|
const hasErrors = result && result.status === "error";
|
|
@@ -59,9 +60,9 @@ export default defineCommand({
|
|
|
59
60
|
label += " (can be upgraded)";
|
|
60
61
|
}
|
|
61
62
|
return {
|
|
62
|
-
label,
|
|
63
|
+
label: isUpToDate || hasErrors ? re.gray(label) : label,
|
|
63
64
|
value: name,
|
|
64
|
-
disabled: isUpToDate,
|
|
65
|
+
disabled: isUpToDate || hasErrors,
|
|
65
66
|
hint: hasErrors ? result.message : void 0
|
|
66
67
|
};
|
|
67
68
|
})
|