gunfile

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

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreprocessAST

func PreprocessAST(ast *Gunfile)

func PrintAST

func PrintAST(ast *Gunfile)

Types

type Exec

type Exec struct {
	Command string `parser:"'Exec' @String"`
}

Exec commands are run during build time Example: Exec "echo 'hello world'"

type Gunfile

type Gunfile struct {
	Pos lexer.Position

	// the base container
	Base string `parser:"'Using' @String"`
	// a bunch of commands that are run sequentially inside the container
	Commands []*Exec `parser:"@@*"`
}

func ParseGunfile

func ParseGunfile(filename string) (*Gunfile, error)

func ParseGunfileString

func ParseGunfileString(s string) (*Gunfile, error)

Jump to

Keyboard shortcuts

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