generalΒΆ
fun chdir(Path..: any): nilChanges the current directory to
Path.fun execute(Command..: any): nil | errorBuilds a shell command from
Command..and executes it, discarding the output. Returnsnilon success or raises an error.fun mkdir(Path..: any): nil | errorCreates a directory with path
Pathif it does not exist, creating intermediate directories if required.fun open(Path: any, Mode: string): fileOpens the file at path
Pathwith the specified mode.fun print(Values..: any): nilPrints out
Valuesto standard output.fun shell(Command..: any): string | errorBuilds a shell command from
Command..and executes it, capturing the output. Returns the captured output on success or raises an error.fun execv(Command: list): nil | errorSimilar to
execute()but expects a list of individual arguments instead of letting the shell split the command line.fun shellv(Command: list): nil | errorSimilar to
shell()but expects a list of individual arguments instead of letting the shell split the command line.fun defined(Name: string): string | nilIf
Namewas defined in the rabs command line then returns the associated value, otherwise returnsnil.fun getenv(Name: string): string | nilReturns the current value of the environment variable
Nameornilif it is not defined.fun include(Path..: string): anyLoads the Minilang file or shared library specified by
Path.fun scope(Name: string, Function: function): anyCreates a new scoped subcontext with name
Nameand callsFunction()in the new context.fun setenv(Name: string, Value: string): nilSets the value of the environment variable
NametoValue.fun subdir(Name: string): context | errorCreates a new directory subcontext with name
Nameand loads thebuild.rabsfile inside the directory. Returns an error if the directory does not exist or does not contain abuild.rabsfile.fun vmount(Path: string, Source: string): nilMounts the directory
SourceontoPath. Resolving a file inPathwill also checkSource.fun target(Path: string): target | errorReturns the target with path
Pathif is has been defined, otherwise raises an error.fun check(Target..: target): nilChecks that each
Targetis up to date, building if necessary.