forFamily static method

ShellDialect forFamily(
  1. ShellFamily family
)

Returns the dialect for family.

Implementation

static ShellDialect forFamily(ShellFamily family) => switch (family) {
  ShellFamily.posix => const PosixShellDialect(),
  ShellFamily.powershell => const PowerShellDialect(),
  ShellFamily.cmd => const CmdShellDialect(),
};