@mojojs/core 0.12.2 → 0.12.3
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/cli/repl.d.ts +7 -0
- package/lib/cli/repl.js +13 -0
- package/lib/cli/repl.js.map +1 -0
- package/package.json +1 -1
package/lib/cli/repl.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import repl from 'repl';
|
|
2
|
+
export default async function replCommand(app) {
|
|
3
|
+
repl.start().context.app = app;
|
|
4
|
+
}
|
|
5
|
+
replCommand.description = 'Start a repl for application';
|
|
6
|
+
replCommand.usage = `Usage: APPLICATION repl [OPTIONS]
|
|
7
|
+
|
|
8
|
+
node index.js repl
|
|
9
|
+
|
|
10
|
+
Options:
|
|
11
|
+
-h, --help Show this summary of available options
|
|
12
|
+
`;
|
|
13
|
+
//# sourceMappingURL=repl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repl.js","sourceRoot":"","sources":["../../src/cli/repl.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,WAAW,CAAC,GAAY;IACpD,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AACjC,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,8BAA8B,CAAC;AACzD,WAAW,CAAC,KAAK,GAAG;;;;;;CAMnB,CAAC"}
|