Documentation ¶
Index ¶
- func BundledScripts(ctx context.Context, path string, w io.Writer) error
- func BundledScriptsTo(ctx context.Context, path string, w io.Writer, out string) (err error)
- func ConfigFile(mainRoot, mainFile string) string
- func ModuleFile(file string) string
- func MustCreateTestBundleFromFs(t *testing.T, fs afero.Fs, script string) []byte
- func MustCreateTestBundleFromMap(t *testing.T, files map[string]string, script string) []byte
- func NoModuleFile(file string) string
- func SentinelFile(file string) string
- func SentinelPath(file string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BundledScripts ¶
BundledScripts bundle scripts and writes the byte output to the provided writer.
func BundledScriptsTo ¶
BundledScriptsTo bundle scripts and outputs it to a file.
func ConfigFile ¶
ConfigFile is a test utility to create the content of a bundle config file.
func ModuleFile ¶
ModuleFile is a test utility to create a path for an arrai script in a bundled script.
func MustCreateTestBundleFromFs ¶
MustCreateTestBundleFromFs takes in a filesystem and path to main script and returns the bundled script.
func MustCreateTestBundleFromMap ¶
MustCreateTestBundleFromMap takes in a map of files representing a memory filesystem and then path to main script and returns the bundled script.
func NoModuleFile ¶
NoModuleFile is a test utility to create a path for an arrai script that is not part of a module.
func SentinelFile ¶
SentinelFile is a test utility to create a path for a sentinel file in a module within a bundle.
func SentinelPath ¶
SentinelPath is a test utility to create a path for a sentinel file without the sentinel module prefix.
Types ¶
This section is empty.