public static Shell getShell() { if (SystemInfo.isUnix()) { return new StandardLinuxShell(); } if (SystemInfo.isWindows()) { return new StandardWindowsShell(); } throw new IllegalStateException("Unsupported OS"); }
public static Shell getShell() { if (SystemInfo.isUnix()) { return new StandardLinuxShell(); } if (SystemInfo.isWindows()) { return new StandardWindowsShell(); } throw new IllegalStateException("Unsupported OS"); }