NSScope

This scoping object is created by the ScriptScope.ns function. Its purpose is providing access to functionality such as execution functions that specifically target NS tooling.

Properties

Link copied to clipboard
abstract val ctx: ScopeContext

This field contains the context object that is applicable to the scope that defines the execution. The object is inherited directly from the parent net.democritus.scripting.scope.ScriptScope without alterations.

Functions

Link copied to clipboard
fun ScriptScope.dir(dirPath: Path, body: DirScope.() -> Unit)
fun ScriptScope.dir(dirPath: String, body: DirScope.() -> Unit)

A scoping function to execute a code block within the context of a DirScope instance, which adapts the path in the scope context at ScopeContext.path to the given value of dirPath. The value of dirPath is automatically resolved if it is a relative path.

Link copied to clipboard

This execution function is used to run a process on the machine. The body parameter is supplied as a higher-order function that executes within the scope of a ExecExecutionTemplate object, in which the arguments for the process can be declared.

Link copied to clipboard

This execution function is used to run an expansion process with the NS expansion framework. The body parameter is supplied as a higher-order function that executes within the scope of an NSExecutionTemplate object, in which the parameters for the expansion process can be declared.

Link copied to clipboard
fun ScriptScope.git(body: GitScope.() -> Unit)

A scoping function to execute a code block within the context of an GitScope instance, which provides functionality to interact with Git source repositories.

Link copied to clipboard

This execution function is used to run a harvesting process with the NS expansion framework. The body parameter is supplied as a higher-order function that executes within the scope of an NSExecutionTemplate object, in which the parameters for the harvesting process can be declared.

Link copied to clipboard

This execution function is used to run Maven. The body parameter is supplied as a higher-order function that executes within the scope of a MavenExecutionTemplate object, in which the parameters for Maven can be declared.

Link copied to clipboard
fun ScriptScope.npm(body: NpmScope.() -> Unit)

A scoping function to execute a code block within the context of an NpmScope instance, which provides functionality to execute NPM commands.

Link copied to clipboard
fun ScriptScope.ns(body: NSScope.() -> Unit)

A scoping function to execute a code block within the context of an NSScope instance, which provides utility functions specific to NSX tooling.

Link copied to clipboard

This execution function is used to run a model validation process with the NS expansion framework. The body parameter is supplied as a higher-order function that executes within the scope of an NSExecutionTemplate object, in which the parameters for the model validation process can be declared.