builder

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: BSD-3-Clause Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROCESS     = "snow"
	VERSION     = "0.1.2"
	DESCRIPTION = "snow is a static site generator."
)

Variables

This section is empty.

Functions

func Build

func Build(conf config.Config) error

func Excute

func Excute()

func Server

func Server(conf config.Config, listen string, autoload bool) error

Types

type Builder

type Builder interface {
	Build(context.Context) error
}

type Builders

type Builders []Builder

func (Builders) Build

func (bs Builders) Build(ctx context.Context) error

type Prompt

type Prompt interface {
	Excute(*bufio.Reader) error
}

type PromptBool

type PromptBool struct {
	Name        string
	Usage       string
	Value       bool
	Destination *bool
}

func (*PromptBool) Excute

func (p *PromptBool) Excute(r *bufio.Reader) error

type PromptString

type PromptString struct {
	Usage       string
	Value       string
	Required    bool
	FilePath    bool
	Destination *string
}

func (*PromptString) Excute

func (p *PromptString) Excute(r *bufio.Reader) error

type Prompts

type Prompts []Prompt

func (Prompts) Excute

func (ps Prompts) Excute(r *bufio.Reader) error

Jump to

Keyboard shortcuts

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