bundle

package
v0.305.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BundledScripts

func BundledScripts(ctx context.Context, path string, w io.Writer) error

BundledScripts bundle scripts and writes the byte output to the provided writer.

func BundledScriptsTo

func BundledScriptsTo(ctx context.Context, path string, w io.Writer, out string) (err error)

BundledScriptsTo bundle scripts and outputs it to a file.

func ConfigFile

func ConfigFile(mainRoot, mainFile string) string

ConfigFile is a test utility to create the content of a bundle config file.

func ModuleFile

func ModuleFile(file string) string

ModuleFile is a test utility to create a path for an arrai script in a bundled script.

func MustCreateTestBundleFromFs

func MustCreateTestBundleFromFs(t *testing.T, fs afero.Fs, script string) []byte

MustCreateTestBundleFromFs takes in a filesystem and path to main script and returns the bundled script.

func MustCreateTestBundleFromMap

func MustCreateTestBundleFromMap(t *testing.T, files map[string]string, script string) []byte

MustCreateTestBundleFromMap takes in a map of files representing a memory filesystem and then path to main script and returns the bundled script.

func NoModuleFile

func NoModuleFile(file string) string

NoModuleFile is a test utility to create a path for an arrai script that is not part of a module.

func SentinelFile

func SentinelFile(file string) string

SentinelFile is a test utility to create a path for a sentinel file in a module within a bundle.

func SentinelPath

func SentinelPath(file string) string

SentinelPath is a test utility to create a path for a sentinel file without the sentinel module prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL