Skip to content

shellDialectForPlatform

shellDialectForPlatform(platform): ShellDialect

Defined in: command/shell-dialect.ts:74

Map an operating system identifier, as process.platform spells it, to the shell dialect a command runs under by default there.

A platform does not determine a shell — it only names the default one, which is what child_process.exec and its equivalents spawn. A caller that knows it is driving a different shell passes that dialect instead.

string

The operating system identifier

ShellDialect

The dialect of that platform’s default shell