@lsst/pik-plugin-select 0.5.0 → 0.5.2
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/index.js
CHANGED
|
@@ -111,7 +111,6 @@ const setCommand = new Command("set").description("Set a specific option for a s
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
const BACK_VALUE = /* @__PURE__ */ Symbol("back");
|
|
114
|
-
const EXIT_VALUE = /* @__PURE__ */ Symbol("exit");
|
|
115
114
|
function isExitPromptError(error) {
|
|
116
115
|
return error instanceof Error && error.name === "ExitPromptError";
|
|
117
116
|
}
|
|
@@ -149,7 +148,7 @@ const switchCommand = new Command("switch").alias("sw").description("Interactive
|
|
|
149
148
|
};
|
|
150
149
|
}),
|
|
151
150
|
new Separator(),
|
|
152
|
-
{ name: pc.dim("
|
|
151
|
+
{ name: pc.dim("← Back"), value: BACK_VALUE }
|
|
153
152
|
]
|
|
154
153
|
});
|
|
155
154
|
} catch (error) {
|
|
@@ -158,7 +157,7 @@ const switchCommand = new Command("switch").alias("sw").description("Interactive
|
|
|
158
157
|
}
|
|
159
158
|
throw error;
|
|
160
159
|
}
|
|
161
|
-
if (selectedChoice ===
|
|
160
|
+
if (selectedChoice === BACK_VALUE) {
|
|
162
161
|
return;
|
|
163
162
|
}
|
|
164
163
|
let selectedOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,OAAO,aAAa,CAAC;AAarB,eAAO,MAAM,aAAa,SA0GtB,CAAC"}
|