Documentation
¶
Overview ¶
Package runscript is the runtime scripts: ~/.agent-vm/runtime.sh and a project's .agent-vm.runtime.sh, run in the VM on every command that enters it, under the shell their shebang names.
Index ¶
Constants ¶
const ShebangAWK = `` /* 332-byte string literal not displayed */
ShebangAWK reads the interpreter a script asks for: bash or sh, zsh otherwise. Only shells: the script is fed on stdin, read with -s. The program is the shebang's first word ("#!/bin/bash -e"), or after env, its options and assignments ("#!/usr/bin/env -S bash -e"). The VM runs it on a project's script, which only the VM reads: keep it as it is.
const StripCRAWK = `{ sub(/\r$/, ""); print }`
StripCRAWK drops the CR ending each line, in the VM.
Variables ¶
This section is empty.
Functions ¶
func Interpreter ¶
Interpreter is the shell content's shebang asks for, as ShebangAWK reads it.
func ProjectPath ¶
ProjectPath is the project dir's runtime script (see env.ProjectPath).
Types ¶
This section is empty.