@zokugun/cli-utils 0.3.0 → 0.3.1
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/cjs/logger.cjs +5 -0
- package/lib/cjs/logger.d.cts +2 -0
- package/lib/esm/logger.d.mts +2 -0
- package/lib/esm/logger.mjs +4 -0
- package/package.json +1 -1
package/lib/cjs/logger.cjs
CHANGED
|
@@ -14,6 +14,7 @@ exports.finishTimer = finishTimer;
|
|
|
14
14
|
exports.info = info;
|
|
15
15
|
exports.newLine = newLine;
|
|
16
16
|
exports.pauseProgress = pauseProgress;
|
|
17
|
+
exports.print = print;
|
|
17
18
|
exports.resumeProgress = resumeProgress;
|
|
18
19
|
exports.showProgress = showProgress;
|
|
19
20
|
exports.stopProgress = stopProgress;
|
|
@@ -84,6 +85,9 @@ function pauseProgress() {
|
|
|
84
85
|
clearInterval($loading);
|
|
85
86
|
log_update_plus_1.stdout.render('');
|
|
86
87
|
} // }}}
|
|
88
|
+
function print(message) {
|
|
89
|
+
log_update_plus_1.stdout.persist(message);
|
|
90
|
+
} // }}}
|
|
87
91
|
function resumeProgress() {
|
|
88
92
|
if ($progessFn) {
|
|
89
93
|
$loading = setInterval($progessFn, cli_spinners_1.default.dots.interval);
|
|
@@ -125,6 +129,7 @@ exports.default = {
|
|
|
125
129
|
info,
|
|
126
130
|
newLine,
|
|
127
131
|
pauseProgress,
|
|
132
|
+
print,
|
|
128
133
|
resumeProgress,
|
|
129
134
|
showProgress,
|
|
130
135
|
stopProgress,
|
package/lib/cjs/logger.d.cts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function finishTimer(duration?: number): void;
|
|
|
14
14
|
export declare function info(message: string): void;
|
|
15
15
|
export declare function newLine(): void;
|
|
16
16
|
export declare function pauseProgress(): void;
|
|
17
|
+
export declare function print(message: string): void;
|
|
17
18
|
export declare function resumeProgress(): void;
|
|
18
19
|
export declare function showProgress(label: string): void;
|
|
19
20
|
export declare function stopProgress(message?: string): void;
|
|
@@ -31,6 +32,7 @@ declare const _default: {
|
|
|
31
32
|
info: typeof info;
|
|
32
33
|
newLine: typeof newLine;
|
|
33
34
|
pauseProgress: typeof pauseProgress;
|
|
35
|
+
print: typeof print;
|
|
34
36
|
resumeProgress: typeof resumeProgress;
|
|
35
37
|
showProgress: typeof showProgress;
|
|
36
38
|
stopProgress: typeof stopProgress;
|
package/lib/esm/logger.d.mts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function finishTimer(duration?: number): void;
|
|
|
14
14
|
export declare function info(message: string): void;
|
|
15
15
|
export declare function newLine(): void;
|
|
16
16
|
export declare function pauseProgress(): void;
|
|
17
|
+
export declare function print(message: string): void;
|
|
17
18
|
export declare function resumeProgress(): void;
|
|
18
19
|
export declare function showProgress(label: string): void;
|
|
19
20
|
export declare function stopProgress(message?: string): void;
|
|
@@ -31,6 +32,7 @@ declare const _default: {
|
|
|
31
32
|
info: typeof info;
|
|
32
33
|
newLine: typeof newLine;
|
|
33
34
|
pauseProgress: typeof pauseProgress;
|
|
35
|
+
print: typeof print;
|
|
34
36
|
resumeProgress: typeof resumeProgress;
|
|
35
37
|
showProgress: typeof showProgress;
|
|
36
38
|
stopProgress: typeof stopProgress;
|
package/lib/esm/logger.mjs
CHANGED
|
@@ -63,6 +63,9 @@ export function pauseProgress() {
|
|
|
63
63
|
clearInterval($loading);
|
|
64
64
|
stdout.render('');
|
|
65
65
|
} // }}}
|
|
66
|
+
export function print(message) {
|
|
67
|
+
stdout.persist(message);
|
|
68
|
+
} // }}}
|
|
66
69
|
export function resumeProgress() {
|
|
67
70
|
if ($progessFn) {
|
|
68
71
|
$loading = setInterval($progessFn, cliSpinners.dots.interval);
|
|
@@ -104,6 +107,7 @@ export default {
|
|
|
104
107
|
info,
|
|
105
108
|
newLine,
|
|
106
109
|
pauseProgress,
|
|
110
|
+
print,
|
|
107
111
|
resumeProgress,
|
|
108
112
|
showProgress,
|
|
109
113
|
stopProgress,
|