@vlandoss/clibuddy 0.1.1 → 0.1.2-git-2e07910.0
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/index.d.mts +1 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
- package/src/services/shell/shell.ts +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -51,6 +51,7 @@ declare class ShellService {
|
|
|
51
51
|
get $(): Shell;
|
|
52
52
|
child(options: ShellOptions): ShellService;
|
|
53
53
|
quiet(options?: ShellOptions): ShellService;
|
|
54
|
+
mute(options?: ShellOptions): ShellService;
|
|
54
55
|
at(cwd: string, options?: ShellOptions): ShellService;
|
|
55
56
|
}
|
|
56
57
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -126,6 +126,12 @@ var ShellService = class ShellService {
|
|
|
126
126
|
verbose: false
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
+
mute(options) {
|
|
130
|
+
return this.quiet({
|
|
131
|
+
...options,
|
|
132
|
+
stdio: "pipe"
|
|
133
|
+
});
|
|
134
|
+
}
|
|
129
135
|
at(cwd, options) {
|
|
130
136
|
const getLocals = (locals) => typeof locals === "boolean" ? [] : typeof locals === "undefined" ? [] : Array.isArray(locals) ? locals : [locals];
|
|
131
137
|
const cwdPreferLocal = getPreferLocal(cwd);
|
package/package.json
CHANGED
|
@@ -33,6 +33,13 @@ export class ShellService {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
mute(options?: ShellOptions) {
|
|
37
|
+
return this.quiet({
|
|
38
|
+
...options,
|
|
39
|
+
stdio: "pipe",
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
36
43
|
at(cwd: string, options?: ShellOptions) {
|
|
37
44
|
const getLocals = (locals: boolean | string | string[] | undefined) =>
|
|
38
45
|
// NOTE: the boolean handling is done outside when determining preferLocal
|