mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-20 08:16:43 +00:00
Add method to check shell initialization
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user