ShellCompletionConfiguration.fromSystemShell constructor

ShellCompletionConfiguration.fromSystemShell(
  1. SystemShell systemShell
)

Creates a ShellCompletionConfiguration given the current SystemShell.

Implementation

factory ShellCompletionConfiguration.fromSystemShell(
  SystemShell systemShell,
) {
  switch (systemShell) {
    case SystemShell.zsh:
      return zshConfiguration;
    case SystemShell.bash:
      return bashConfiguration;
  }
}