This commit is contained in:
parent
cf46944e50
commit
893f264a5e
@ -1,2 +1,27 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from executor import Executor
|
||||
|
||||
|
||||
class Server:
|
||||
|
||||
def __init__(self, homeDirectory: str, sessionTimeout: int = 120, availableServer: bool = True,
|
||||
currentDirectory: str = ""):
|
||||
self.isAuthenticated = False
|
||||
self.homeDirectory = homeDirectory
|
||||
self.sessionTimeout = sessionTimeout
|
||||
self.availableServer = availableServer
|
||||
if currentDirectory == "":
|
||||
self.currentDirectory = homeDirectory
|
||||
else:
|
||||
self.currentDirectory = currentDirectory
|
||||
self.executor = Executor(homeDirectory)
|
||||
|
||||
def login(username: str, password: str) -> bool:
|
||||
pass
|
||||
|
||||
def logout() -> None:
|
||||
pass
|
||||
|
||||
def execute(command: str, firstParam: str, secondParam: str) -> bool:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user