@mono-labs/cli 0.0.26 → 0.0.28
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/lib/index.js +10 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -14,4 +14,14 @@ import './commands/submit/index.js'
|
|
|
14
14
|
import './commands/update/index.js'
|
|
15
15
|
import './commands/build-process/index.js'
|
|
16
16
|
|
|
17
|
+
|
|
18
|
+
program.on('command:*', (operands) => {
|
|
19
|
+
const [cmd, ...args] = operands;
|
|
20
|
+
// your fallback logic
|
|
21
|
+
|
|
22
|
+
console.error(`Unknown command: ${JSON.stringify(operands)}`);
|
|
23
|
+
// e.g. route to a generic handler:
|
|
24
|
+
// runFallback(cmd, args)
|
|
25
|
+
process.exitCode = 1; // don’t exit immediately if you prefer
|
|
26
|
+
});
|
|
17
27
|
program.parse()
|