mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 16:42:19 +00:00
19 lines
559 B
TypeScript
19 lines
559 B
TypeScript
import * as localShellCore from "./localShell.cjs";
|
|
|
|
export type LocalShellType = "posix" | "fish" | "powershell" | "cmd" | "unknown";
|
|
export type LocalOs = "linux" | "macos" | "windows";
|
|
|
|
type LocalShellCore = {
|
|
detectLocalOs: (platformLike?: string) => LocalOs;
|
|
classifyLocalShellType: (
|
|
shellPath: string | undefined,
|
|
platformLike?: string,
|
|
) => LocalShellType;
|
|
};
|
|
|
|
const core = localShellCore as unknown as LocalShellCore;
|
|
|
|
export const detectLocalOs = core.detectLocalOs;
|
|
|
|
export const classifyLocalShellType = core.classifyLocalShellType;
|