plugins

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHugoNotFound        = errors.New("It seems that tou don't have 'hugo' on your PATH")
	ErrUnsupportedFileType = errors.New("The type of the provided file isn't supported for this action")
)

Functions

func Run

func Run(command string, args []string, path string) error

Run executes an external command

Types

type Hugo

type Hugo struct {
	// Website root
	Root string `name:"Website Root"`
	// Public folder
	Public string `name:"Public Directory"`
	// Hugo executable path
	Exe string `name:"Hugo Executable"`
	// Hugo arguments
	Args []string `name:"Hugo Arguments"`
	// Indicates if we should clean public before a new publish.
	CleanPublic bool `name:"Clean Public"`
}

Hugo is a hugo (https://gohugo.io) plugin.

func (*Hugo) Find

func (h *Hugo) Find() error

Find finds the hugo executable in the path.

Jump to

Keyboard shortcuts

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