Shell task proxy.
This class is a proxy to Shell commandes. It allow running commands in a shell and get the output and stdout.
CONFIG_FILE_NAME: str
env_file_path: str
env_hash: str
env_name: str
working_dir: str
summary
Union
str
str
MessageDispatcher
Attach a custom observer to the shell proxy. The logs of the proxy will be dispatch to the observer
MessageObserver
Attach a progress_bar to the shell proxy. The logs of the proxy will be dispatch to the progress_bar logs
ProgressBar
Creates the OS environment variables that are passed to the shell command
dict
Run a command in a shell and return the output. There logs of the command are ignored.
Union
dict
bool
- False
bool
- True
Any
Create the env dir.
Path
Returns True if the virtual env is installed. False otherwise
bool
Format the user command. If the command is a list, must return a list.
Union
Union
Returns the path of the config file used to create the env
str
Returns the absolute path for the env dir base on a dir name. All env are in the global env dir.
str
Get the message dispatcher
MessageDispatcher
Install the virtual env. Return True if the env was installed, False if it was already installed, or an error occured.
bool
Log an error message using the dispatcher
str
Log an info message using the dispatcher
str
Log a warining message using the dispatcher
str
Read the env file and return its content.
str
Run a command in a shell. The logs of the command will be dispatched to the message dispatcher during the execution.
Union
dict
bool
- False
bool
- False
bool
- True
int
Run a command in a shell without blocking the thread. There logs of the command are ignored.
Union
dict
bool
- False
SysProc
ShellProxyDTO
Uninstall the virtual env. Return true if the env was uninstalled, False if it was already uninstalled or an error occured.
bool
Returns the name of the class
bool
- False
bool
- False
bool
- False
str
return true if the folder is a valid env folder
str
bool
Create the virtual environment from a string containing the environment definition.
The env dir name is generated from an hash of the env_str. So if the env_str is the same, the env dir name will be the same.
str
MessageDispatcher
BaseEnvShell
Returns the full name of the class
bool
- False
bool
- False
str
Returns the json info file content
str
VEnvCreationInfo
Returns the type of the env
Literal
Get the human name of the resource
str
Get the short description of the resource
str
Get the style of the resource
TypingStyle
Get the typing name of the resource
str
Create a hash from the env_str to generate a unique env dir name.
str
str
Get all the classes that inherit this class
List