gen

package
v0.0.0-...-1cea3d8 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(outputDir, templateFile string, toolParams ToolParams) error

Generate writes a shell script based on the template and the tool config

func GenerateAlias

func GenerateAlias(outputDir, toolName, aliasName string) error

GenerateAlias produces a symlink to the specified tool with the given alias name

Types

type ToolParams

type ToolParams struct {
	Engine       string
	Name         string
	ImageName    string
	ImageTag     cfg.ImageTagConfig
	WorkDir      string
	HomeDir      string
	Command      cfg.CommandConfig
	Mounts       []cfg.MountConfig
	Env          []cfg.EnvConfig
	NetworkMode  string
	CustomScript string
}

Jump to

Keyboard shortcuts

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