History

feat: add headless `t3 connect` setup for SSH hosts (#3749)

Theo Browne committed 3 months ago

Commit 7a820ab1 parent 53e3c9835 files · +3017 −144Browse files

Showing the changes to packages/shared/src/hostProcess.ts (1 of 35 files). Show all

Unified · Split

packages/shared/src/hostProcess.ts+14−0
@@ -30,4 +30,18 @@ export const HostProcessEnvironment = Context.Reference<NodeJS.ProcessEnv>( · 29 unmodified lines
30 },30 },
31);31);
32 32
33export const HostProcessExecutablePath = Context.Reference<string>(
34 "@t3tools/shared/hostProcess/HostProcessExecutablePath",
35 {
36 defaultValue: () => process.execPath,
37 },
38);
39
40export const HostProcessArguments = Context.Reference<ReadonlyArray<string>>(
41 "@t3tools/shared/hostProcess/HostProcessArguments",
42 {
43 defaultValue: () => process.argv,
44 },
45);
46
33export const isHostWindows = Effect.map(HostProcessPlatform, (platform) => platform === "win32");47export const isHostWindows = Effect.map(HostProcessPlatform, (platform) => platform === "win32");