mirror of
https://github.com/morluto/rea.git
synced 2026-11-17 04:04:25 +00:00
refactor(process): require the platform for environment snapshots instead of reading the host (#11028)
This commit is contained in:
1 parent
4126698407
commit
5cfaac0834
34 files changed
+156
-51
No files matched your search
+5
-1
@@ -1,4 +1,5 @@
|
||||
import { Cli, z } from "incur";
|
||||
import { HOST_PLATFORM } from "../platform/HostPlatform.js";
|
||||
|
||||
import type { FridaInstrumentationPort } from "../application/frida/FridaInstrumentationPort.js";
|
||||
import { currentClientRegistrationCommand } from "../application/ClientRegistrationIdentity.js";
|
||||
@@ -74,7 +75,10 @@ const registerCommands = (
|
||||
* every set of registrars; they apply to whichever commands were registered.
|
||||
*/
|
||||
export const createCliShell = (options: CliShellOptions): CliInstance => {
|
||||
const environment = snapshotEnvironment(options.selectedEnvironment);
|
||||
const environment = snapshotEnvironment(
|
||||
options.selectedEnvironment,
|
||||
HOST_PLATFORM.platform,
|
||||
);
|
||||
const defaultRegistration = parseClientRegistrationCommand(
|
||||
currentClientRegistrationCommand({ environment }),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user