mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-26 02:31:40 +00:00
19 lines
570 B
TypeScript
19 lines
570 B
TypeScript
import {
|
|
classifyLocalShellType as classifySharedLocalShellType,
|
|
detectLocalOs as detectSharedLocalOs,
|
|
} from "@/lib/localShell.cjs";
|
|
|
|
export type LocalShellType = "posix" | "fish" | "powershell" | "cmd" | "unknown";
|
|
export type LocalOs = "linux" | "macos" | "windows";
|
|
|
|
export function detectLocalOs(platformLike?: string): LocalOs {
|
|
return detectSharedLocalOs(platformLike);
|
|
}
|
|
|
|
export function classifyLocalShellType(
|
|
shellPath: string | undefined,
|
|
platformLike?: string,
|
|
): LocalShellType {
|
|
return classifySharedLocalShellType(shellPath, platformLike);
|
|
}
|