Skip to content

IConsole

Namespace: VideoCataloger

Type: Interface

Console interface. This is the interface for scripts.

Definition

public interface IConsole

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

void WriteLine(string line)

Parameters:

Name Type Description
line String Text to be output

Write

Write text to the console window

void Write(string line)

Parameters:

Name Type Description
line String Text to be written

Clear

Clear the console window from any text.

void Clear()

RunScript

Load,compile and run a script by calling its main function with the provided arguments

void RunScript(string script, string 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

void RunScript(string script)

Parameters:

Name Type Description
script String Path to the script to be run.

GetScriptFolder

Return the folder of this script.

string GetScriptFolder()

Returns: String - Path to the last run script folder.


GetScriptFolder

Return the folder of this script.

string GetScriptFolder()

Returns: String - Path to the last run script folder.