@lsst/pik 0.6.3 → 0.6.4

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.
@@ -117,7 +117,7 @@ export const killportPlugin = {
117
117
  }
118
118
  catch (error) {
119
119
  if (error instanceof Error && error.name === 'ExitPromptError') {
120
- return;
120
+ process.exit(0);
121
121
  }
122
122
  throw error;
123
123
  }
@@ -1 +1 @@
1
- {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/lib/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA8C3E,eAAO,MAAM,OAAO,SAGG,CAAC;AAExB;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAgE9D"}
1
+ {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/lib/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA8C3E,eAAO,MAAM,OAAO,SAGG,CAAC;AAExB;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAkE9D"}
@@ -63,6 +63,7 @@ export async function initializeProgram() {
63
63
  }
64
64
  if (plugins.length === 1) {
65
65
  // Single plugin - run its default command
66
+ console.clear();
66
67
  const plugin = plugins[0];
67
68
  const cmd = program.commands.find((c) => c.name() === plugin.command);
68
69
  if (cmd) {
@@ -73,6 +74,7 @@ export async function initializeProgram() {
73
74
  // Multiple plugins - show selection menu in a loop
74
75
  const EXIT_VALUE = Symbol('exit');
75
76
  while (true) {
77
+ console.clear();
76
78
  let selectedPlugin;
77
79
  try {
78
80
  selectedPlugin = await select({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lsst/pik",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "CLI tool for switching config options in source files",
5
5
  "type": "module",
6
6
  "license": "MIT",