Add method to check shell initialization

This commit is contained in:
crschnick
2023-07-09 04:19:21 +00:00
parent c93efb6ae0
commit 54cc66d0d2
@@ -18,6 +18,10 @@ public class LocalStore extends JacksonizedValue implements ShellStore {
localFileSystem = new LocalStore().createFileSystem();
}
public static boolean isLocalShellInitialized() {
return local != null;
}
public static ShellControl getShell() {
if (local == null) {
throw new IllegalStateException("Local shell not initialized yet");