setup method

void setup(
  1. String name,
  2. String exec,
  3. String? shellName
)

Implementation

void setup(String name, String exec, String? shellName) {
  shellName = shellName?.trim().toLowerCase();
  final shell = Shell.values.firstWhere(
    (shell) => shell.name == shellName,
    orElse: () => throw UnsupportedError('Unsupported shell'),
  );
  print(shell.generate(name, exec));
}