IConsole¶
Namespace: VideoCataloger
Type: Interface
Console interface. This is the interface for scripts.
Definition¶
Methods¶
| Method | Description |
|---|---|
| WriteLine(string) | Write a line of text to the console window |
| Write(string) | Write text to the console window |
| Clear() | Clear the console window from any text. |
| RunScript(string, string) | Load,compile and run a script by calling its main function with the provided arguments |
| RunScript(string) | Load,compile and run a script by calling its main function with the provided arguments |
| GetScriptFolder() | Return the folder of this script. |
| GetScriptFolder() | Return the folder of this script. |
WriteLine¶
Write a line of text to the console window
Parameters:
| Name | Type | Description |
|---|---|---|
line |
String |
Text to be output |
Write¶
Write text to the console window
Parameters:
| Name | Type | Description |
|---|---|---|
line |
String |
Text to be written |
Clear¶
Clear the console window from any text.
RunScript¶
Load,compile and run a script by calling its main function with the provided arguments
Parameters:
| Name | Type | Description |
|---|---|---|
script |
String |
Path to the script that will be run |
arguments |
String |
Arguments to pass to the script |
RunScript¶
Load,compile and run a script by calling its main function with the provided arguments
Parameters:
| Name | Type | Description |
|---|---|---|
script |
String |
Path to the script to be run. |
GetScriptFolder¶
Return the folder of this script.
Returns: String
- Path to the last run script folder.
GetScriptFolder¶
Return the folder of this script.
Returns: String
- Path to the last run script folder.