trm-client 11.1.0 → 11.1.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/changelog.txt
CHANGED
|
@@ -5,6 +5,7 @@ import * as Core from "trm-core";
|
|
|
5
5
|
import { Package } from "trm-registry-types";
|
|
6
6
|
export interface AbstractCommandRunOptions {
|
|
7
7
|
registry?: Core.AbstractRegistry;
|
|
8
|
+
systemPackages?: Core.TrmPackage[];
|
|
8
9
|
}
|
|
9
10
|
export declare abstract class AbstractCommand {
|
|
10
11
|
protected command: Command;
|
|
@@ -405,6 +405,9 @@ class AbstractCommand {
|
|
|
405
405
|
this.args = this.normalizeArgs(args);
|
|
406
406
|
this.onArgs();
|
|
407
407
|
this.registry = options.registry;
|
|
408
|
+
if (options.systemPackages !== undefined) {
|
|
409
|
+
this.systemPackages = options.systemPackages;
|
|
410
|
+
}
|
|
408
411
|
try {
|
|
409
412
|
yield this.handler();
|
|
410
413
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { AbstractCommandRunOptions } from "./AbstractCommand";
|
|
2
2
|
export type CommandHandlerValues = Record<string, unknown>;
|
|
3
|
-
export
|
|
4
|
-
registry?: Core.AbstractRegistry;
|
|
5
|
-
}
|
|
3
|
+
export type CommandHandlerOptions = AbstractCommandRunOptions;
|
|
6
4
|
export declare function runCommandHandler(id: string, values?: CommandHandlerValues, options?: CommandHandlerOptions): Promise<void>;
|