@pristine-ts/cli 0.0.317 → 0.0.319
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/lib/cjs/cli.module.js +1 -0
- package/dist/lib/cjs/cli.module.js.map +1 -1
- package/dist/lib/cjs/managers/console.manager.js +50 -0
- package/dist/lib/cjs/managers/console.manager.js.map +1 -1
- package/dist/lib/cjs/options/console-readline.options.js +12 -0
- package/dist/lib/cjs/options/console-readline.options.js.map +1 -0
- package/dist/lib/cjs/options/options.js +18 -0
- package/dist/lib/cjs/options/options.js.map +1 -0
- package/dist/lib/esm/cli.module.js +1 -0
- package/dist/lib/esm/cli.module.js.map +1 -1
- package/dist/lib/esm/managers/console.manager.js +27 -0
- package/dist/lib/esm/managers/console.manager.js.map +1 -1
- package/dist/lib/esm/options/console-readline.options.js +8 -0
- package/dist/lib/esm/options/console-readline.options.js.map +1 -0
- package/dist/lib/esm/options/options.js +2 -0
- package/dist/lib/esm/options/options.js.map +1 -0
- package/dist/types/cli.module.d.ts +1 -0
- package/dist/types/managers/console.manager.d.ts +3 -0
- package/dist/types/options/console-readline.options.d.ts +4 -0
- package/dist/types/options/options.d.ts +1 -0
- package/package.json +7 -7
|
@@ -27,6 +27,7 @@ __exportStar(require("./event-payloads/event-payloads"), exports);
|
|
|
27
27
|
__exportStar(require("./interfaces/interfaces"), exports);
|
|
28
28
|
__exportStar(require("./managers/managers"), exports);
|
|
29
29
|
__exportStar(require("./mappers/mappers"), exports);
|
|
30
|
+
__exportStar(require("./options/options"), exports);
|
|
30
31
|
__exportStar(require("./types/types"), exports);
|
|
31
32
|
exports.CliModule = {
|
|
32
33
|
keyname: cli_module_keyname_1.CliModuleKeyname,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.module.js","sourceRoot":"","sources":["../../../src/cli.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,6DAAsD;AACtD,4CAA6C;AAC7C,wDAAyD;AACzD,kDAAmD;AAEnD,sDAAoC;AACpC,gDAA8B;AAC9B,kDAAgC;AAChC,kEAAgD;AAChD,kEAAgD;AAChD,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,gDAA8B;AAEjB,QAAA,SAAS,GAAoB;IACtC,OAAO,EAAE,qCAAgB;IACzB,wBAAwB,EAAE,EACzB;IACD,aAAa,EAAE;QACX,iBAAU;QACV,uBAAa;QACb,6BAAgB;KACnB;CACJ,CAAA"}
|
|
1
|
+
{"version":3,"file":"cli.module.js","sourceRoot":"","sources":["../../../src/cli.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,6DAAsD;AACtD,4CAA6C;AAC7C,wDAAyD;AACzD,kDAAmD;AAEnD,sDAAoC;AACpC,gDAA8B;AAC9B,kDAAgC;AAChC,kEAAgD;AAChD,kEAAgD;AAChD,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,gDAA8B;AAEjB,QAAA,SAAS,GAAoB;IACtC,OAAO,EAAE,qCAAgB;IACzB,wBAAwB,EAAE,EACzB;IACD,aAAa,EAAE;QACX,iBAAU;QACV,uBAAa;QACb,6BAAgB;KACnB;CACJ,CAAA"}
|
|
@@ -1,15 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
2
18
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
20
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
21
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
23
|
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
34
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
35
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
36
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
37
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
38
|
+
});
|
|
39
|
+
};
|
|
8
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
41
|
exports.ConsoleManager = void 0;
|
|
10
42
|
const tsyringe_1 = require("tsyringe");
|
|
11
43
|
const common_1 = require("@pristine-ts/common");
|
|
12
44
|
const cli_module_keyname_1 = require("../cli.module.keyname");
|
|
45
|
+
const readline = __importStar(require("node:readline/promises"));
|
|
46
|
+
const node_readline_1 = require("node:readline");
|
|
47
|
+
const node_process_1 = require("node:process");
|
|
48
|
+
const console_readline_options_1 = require("../options/console-readline.options");
|
|
13
49
|
let ConsoleManager = class ConsoleManager {
|
|
14
50
|
write(message) {
|
|
15
51
|
process.stdout.write(message);
|
|
@@ -17,6 +53,20 @@ let ConsoleManager = class ConsoleManager {
|
|
|
17
53
|
writeLine(message) {
|
|
18
54
|
this.write(message + "\n");
|
|
19
55
|
}
|
|
56
|
+
read() {
|
|
57
|
+
return process.stdin.read();
|
|
58
|
+
}
|
|
59
|
+
readLine(question, options = new console_readline_options_1.ConsoleReadlineOptions()) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const rl = readline.createInterface({ input: node_process_1.stdin, output: node_process_1.stdout });
|
|
62
|
+
const answer = yield rl.question(question);
|
|
63
|
+
if (!options.showCharactersOnTyping) {
|
|
64
|
+
(0, node_readline_1.moveCursor)(node_process_1.stdout, 0, -1);
|
|
65
|
+
}
|
|
66
|
+
rl.close();
|
|
67
|
+
return answer;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
20
70
|
};
|
|
21
71
|
exports.ConsoleManager = ConsoleManager;
|
|
22
72
|
exports.ConsoleManager = ConsoleManager = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.manager.js","sourceRoot":"","sources":["../../../../src/managers/console.manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console.manager.js","sourceRoot":"","sources":["../../../../src/managers/console.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AACpC,gDAAiD;AACjD,8DAAuD;AACvD,iEAAmD;AACnD,iDAAyC;AACzC,+CAAgE;AAChE,kFAA2E;AAIpE,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,KAAK,CAAC,OAAe;QACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,SAAS,CAAC,OAAe;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI;QACA,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,EAAY,CAAC;IAC1C,CAAC;IAEK,QAAQ,CAAC,QAAgB,EAAE,UAAkC,IAAI,iDAAsB,EAAE;;YAC3F,MAAM,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC,EAAE,KAAK,EAAL,oBAAK,EAAE,MAAM,EAAN,qBAAM,EAAE,CAAC,CAAC;YAEvD,MAAM,MAAM,GAAW,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAEnD,IAAG,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAC;gBACjC,IAAA,0BAAU,EAAC,qBAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC9B,CAAC;YAED,EAAE,CAAC,KAAK,EAAE,CAAC;YAEX,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;CACJ,CAAA;AA1BY,wCAAc;yBAAd,cAAc;IAF1B,IAAA,qBAAU,GAAE;IACZ,IAAA,qBAAY,EAAC,qCAAgB,CAAC;GAClB,cAAc,CA0B1B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsoleReadlineOptions = void 0;
|
|
4
|
+
class ConsoleReadlineOptions {
|
|
5
|
+
constructor(options) {
|
|
6
|
+
var _a;
|
|
7
|
+
this.showCharactersOnTyping = true;
|
|
8
|
+
this.showCharactersOnTyping = (_a = options === null || options === void 0 ? void 0 : options.showCharactersOnTyping) !== null && _a !== void 0 ? _a : this.showCharactersOnTyping;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ConsoleReadlineOptions = ConsoleReadlineOptions;
|
|
12
|
+
//# sourceMappingURL=console-readline.options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console-readline.options.js","sourceRoot":"","sources":["../../../../src/options/console-readline.options.ts"],"names":[],"mappings":";;;AAAA,MAAa,sBAAsB;IAG/B,YAAY,OAAyC;;QAFrD,2BAAsB,GAAY,IAAI,CAAC;QAGnC,IAAI,CAAC,sBAAsB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,mCAAI,IAAI,CAAC,sBAAsB,CAAC;IACjG,CAAC;CACJ;AAND,wDAMC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./console-readline.options"), exports);
|
|
18
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/options/options.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
|
|
@@ -10,6 +10,7 @@ export * from "./event-payloads/event-payloads";
|
|
|
10
10
|
export * from "./interfaces/interfaces";
|
|
11
11
|
export * from "./managers/managers";
|
|
12
12
|
export * from "./mappers/mappers";
|
|
13
|
+
export * from "./options/options";
|
|
13
14
|
export * from "./types/types";
|
|
14
15
|
export const CliModule = {
|
|
15
16
|
keyname: CliModuleKeyname,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.module.js","sourceRoot":"","sources":["../../../src/cli.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAEnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAE9B,MAAM,CAAC,MAAM,SAAS,GAAoB;IACtC,OAAO,EAAE,gBAAgB;IACzB,wBAAwB,EAAE,EACzB;IACD,aAAa,EAAE;QACX,UAAU;QACV,aAAa;QACb,gBAAgB;KACnB;CACJ,CAAA"}
|
|
1
|
+
{"version":3,"file":"cli.module.js","sourceRoot":"","sources":["../../../src/cli.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAEnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAE9B,MAAM,CAAC,MAAM,SAAS,GAAoB;IACtC,OAAO,EAAE,gBAAgB;IACzB,wBAAwB,EAAE,EACzB;IACD,aAAa,EAAE;QACX,UAAU;QACV,aAAa;QACb,gBAAgB;KACnB;CACJ,CAAA"}
|
|
@@ -4,9 +4,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
15
|
+
};
|
|
7
16
|
import { injectable } from "tsyringe";
|
|
8
17
|
import { moduleScoped } from "@pristine-ts/common";
|
|
9
18
|
import { CliModuleKeyname } from "../cli.module.keyname";
|
|
19
|
+
import * as readline from 'node:readline/promises';
|
|
20
|
+
import { moveCursor } from 'node:readline';
|
|
21
|
+
import { stdin as input, stdout as output } from 'node:process';
|
|
22
|
+
import { ConsoleReadlineOptions } from "../options/console-readline.options";
|
|
10
23
|
let ConsoleManager = class ConsoleManager {
|
|
11
24
|
write(message) {
|
|
12
25
|
process.stdout.write(message);
|
|
@@ -14,6 +27,20 @@ let ConsoleManager = class ConsoleManager {
|
|
|
14
27
|
writeLine(message) {
|
|
15
28
|
this.write(message + "\n");
|
|
16
29
|
}
|
|
30
|
+
read() {
|
|
31
|
+
return process.stdin.read();
|
|
32
|
+
}
|
|
33
|
+
readLine(question, options = new ConsoleReadlineOptions()) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const rl = readline.createInterface({ input, output });
|
|
36
|
+
const answer = yield rl.question(question);
|
|
37
|
+
if (!options.showCharactersOnTyping) {
|
|
38
|
+
moveCursor(output, 0, -1);
|
|
39
|
+
}
|
|
40
|
+
rl.close();
|
|
41
|
+
return answer;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
17
44
|
};
|
|
18
45
|
ConsoleManager = __decorate([
|
|
19
46
|
injectable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.manager.js","sourceRoot":"","sources":["../../../../src/managers/console.manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console.manager.js","sourceRoot":"","sources":["../../../../src/managers/console.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACpC,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,qCAAqC,CAAC;AAIpE,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,KAAK,CAAC,OAAe;QACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,SAAS,CAAC,OAAe;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI;QACA,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,EAAY,CAAC;IAC1C,CAAC;IAEK,QAAQ,CAAC,QAAgB,EAAE,UAAkC,IAAI,sBAAsB,EAAE;;YAC3F,MAAM,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;YAEvD,MAAM,MAAM,GAAW,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAEnD,IAAG,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAC;gBACjC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC9B,CAAC;YAED,EAAE,CAAC,KAAK,EAAE,CAAC;YAEX,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;CACJ,CAAA;AA1BY,cAAc;IAF1B,UAAU,EAAE;IACZ,YAAY,CAAC,gBAAgB,CAAC;GAClB,cAAc,CA0B1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class ConsoleReadlineOptions {
|
|
2
|
+
constructor(options) {
|
|
3
|
+
var _a;
|
|
4
|
+
this.showCharactersOnTyping = true;
|
|
5
|
+
this.showCharactersOnTyping = (_a = options === null || options === void 0 ? void 0 : options.showCharactersOnTyping) !== null && _a !== void 0 ? _a : this.showCharactersOnTyping;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=console-readline.options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console-readline.options.js","sourceRoot":"","sources":["../../../../src/options/console-readline.options.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,sBAAsB;IAG/B,YAAY,OAAyC;;QAFrD,2BAAsB,GAAY,IAAI,CAAC;QAGnC,IAAI,CAAC,sBAAsB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,mCAAI,IAAI,CAAC,sBAAsB,CAAC;IACjG,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/options/options.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -7,5 +7,6 @@ export * from "./event-payloads/event-payloads";
|
|
|
7
7
|
export * from "./interfaces/interfaces";
|
|
8
8
|
export * from "./managers/managers";
|
|
9
9
|
export * from "./mappers/mappers";
|
|
10
|
+
export * from "./options/options";
|
|
10
11
|
export * from "./types/types";
|
|
11
12
|
export declare const CliModule: ModuleInterface;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { ConsoleReadlineOptions } from "../options/console-readline.options";
|
|
1
2
|
export declare class ConsoleManager {
|
|
2
3
|
write(message: string): void;
|
|
3
4
|
writeLine(message: string): void;
|
|
5
|
+
read(): string;
|
|
6
|
+
readLine(question: string, options?: ConsoleReadlineOptions): Promise<string>;
|
|
4
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./console-readline.options";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.319",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/cli.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/cli.module.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@pristine-ts/common": "^0.0.
|
|
28
|
-
"@pristine-ts/core": "^0.0.
|
|
29
|
-
"@pristine-ts/file": "^0.0.
|
|
30
|
-
"@pristine-ts/logging": "^0.0.
|
|
31
|
-
"@pristine-ts/validation": "^0.0.
|
|
27
|
+
"@pristine-ts/common": "^0.0.319",
|
|
28
|
+
"@pristine-ts/core": "^0.0.319",
|
|
29
|
+
"@pristine-ts/file": "^0.0.319",
|
|
30
|
+
"@pristine-ts/logging": "^0.0.319",
|
|
31
|
+
"@pristine-ts/validation": "^0.0.319",
|
|
32
32
|
"class-transformer": "^0.5.1"
|
|
33
33
|
},
|
|
34
34
|
"jest": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"src/*.{js,ts}"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "43273e8d41e45d1d43b738d17dece1fc914c7f2f"
|
|
69
69
|
}
|