operation

package
v0.0.0-...-1950331 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	Type           string
	Input          util.PathObject
	Stats          os.FileInfo
	OutputTemplate *pongo2.Template
	Output         util.PathObject
	HasConflict    bool
	Index          int
	ConflictCount  int
}

type OperationList

type OperationList []Operation

func FilesToOperationsList

func FilesToOperationsList(opType string, files []string, outputTemplate *pongo2.Template) OperationList

func (OperationList) AddIndex

func (o OperationList) AddIndex() OperationList

func (OperationList) FindConflicts

func (o OperationList) FindConflicts() OperationList

func (OperationList) NoMove

func (o OperationList) NoMove() OperationList

func (OperationList) PopulateBlankExtensions

func (o OperationList) PopulateBlankExtensions() OperationList

func (OperationList) RemoveDirectories

func (o OperationList) RemoveDirectories() OperationList

func (OperationList) RemoveDuplicateInputs

func (o OperationList) RemoveDuplicateInputs() OperationList

func (OperationList) RenderTemplates

func (o OperationList) RenderTemplates() OperationList

func (OperationList) Run

func (o OperationList) Run(command []string, opts options.CommonOptions)

func (OperationList) Sort

func (o OperationList) Sort(sortOption string) OperationList

Jump to

Keyboard shortcuts

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