commands

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilePermission      = 0644
	DirectoryPermission = 0755
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Output    io.Writer
	Logger    *log.Logger
	Config    *config.Config
	Templates repositories.TemplateRepository
	Renderer  renderer.TemplateRenderer
	CreateDir bool
	Force     bool

	Now func() time.Time
}

func NewCommand

func NewCommand(
	output io.Writer,
	logger *log.Logger,
	config *config.Config,
	templates repositories.TemplateRepository,
	renderer renderer.TemplateRenderer,
	createDir bool,
	force bool,
) *Command

func (*Command) Add

func (cmd *Command) Add(files []string) error

func (*Command) List

func (cmd *Command) List(files []string) error

func (*Command) Preview added in v0.3.1

func (cmd *Command) Preview(files []string) error

func (*Command) Touch

func (cmd *Command) Touch(files []string) error

Jump to

Keyboard shortcuts

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