cmd

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFile added in v0.1.4

func CheckFile(fpath string) (exist bool, err error)

func Initialize added in v0.1.4

func Initialize()

func ReadFile added in v0.1.4

func ReadFile(fpath string) (content []byte, err error)

func Run added in v0.1.4

func Run() error

func WriteFile added in v0.1.4

func WriteFile(fpath string, content []byte, force bool) (err error)

Types

type CommandBuild added in v0.1.4

type CommandBuild struct {
	// contains filtered or unexported fields
}

func NewCommandBuild added in v0.1.4

func NewCommandBuild(cfg ConfigCommandBuild) CommandBuild

func (CommandBuild) Log added in v0.1.4

func (c CommandBuild) Log(msg string)

func (CommandBuild) Run added in v0.1.4

func (c CommandBuild) Run() (err error)

type ConfigCommandBuild added in v0.1.4

type ConfigCommandBuild struct {
	Quiet      bool
	SourcePath string `validate:"required,ne="`
	OutputPath string `validate:"required,ne="`
}

Jump to

Keyboard shortcuts

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