gen

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const OUTPUT_TOKEN = "$OUTPUT"
View Source
const SOURCE_TOKEN = "$SOURCE"

Variables

This section is empty.

Functions

func CopyArtifacts

func CopyArtifacts(conf *Config, inDir string, outDir string)

func CopyFile

func CopyFile(src, dst string) (int64, error)

func FormatPathCwd

func FormatPathCwd(filePath string) string

func GetFilepath

func GetFilepath(promptStr string) string

func GetNumber

func GetNumber(promptStr string) int

func LogError

func LogError(str string)

func LogSuccess

func LogSuccess(str string)

func LogTask

func LogTask(str string)

func MoveFile

func MoveFile(sourcePath, destPath string) error

func PrepareOutdir

func PrepareOutdir(conf *Config) string

func RunCmds

func RunCmds(conf *Config, cmdGenExec Executor, cmdSolExec Executor, total int, inDir string, outDir string)

Types

type Config

type Config struct {
	Testcase  ConfigTestCase
	Languages map[string]ConfigLanguage
}

func GetConf

func GetConf() *Config

type ConfigLanguage

type ConfigLanguage struct {
	Name       string
	Extensions []string
	Compile    *[]string
	Run        []string
}

type ConfigTestCase

type ConfigTestCase struct {
	Extensions []string
	Output     string
}

type Executor

type Executor func(extraArgs ...string) *exec.Cmd

func CompileFile

func CompileFile(conf *Config, inPath string, outDir string) Executor

Jump to

Keyboard shortcuts

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