options

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Verbose bool

	// Internal Services
	TemplateResolver loading.TemplateResolver

	// Manager Options
	OutPath            string
	RootPath           string
	InputPaths         []string
	BuildFileExtension string

	// Build Options
	TagPrefix    []byte
	VarTagPrefix []byte
	VarTagOpen   []byte
	VarTagClose  []byte

	// Server options
	Watch      bool
	ServerPort int
	LiveReload bool
}

Options hold all the haste specific options available

func NewOptions

func NewOptions() *Options

NewOptions provides a new set of options with defaults set

func (*Options) LoadFileResolver

func (o *Options) LoadFileResolver()

func (*Options) ParseCommandFlags

func (o *Options) ParseCommandFlags() error

ParseCommandFlags to read user-provided input from the command-line and update the options with what's provided.

Jump to

Keyboard shortcuts

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