checklist

package
v0.0.0-...-e0f7ac1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesExistAny

func FilesExistAny(path string, tp FileType, files ...string) bool

FilesExistAny checks if the given file(s) exists in the root folder.

func FindOccurrencesInTree

func FindOccurrencesInTree(path, regex, filePattern string) int

FindOccurrencesInTree tries to match the regular expression in files matching the file pattern. It returns the number of matchings.

Types

type CheckItem

type CheckItem struct {
	Name string `json:"name"`
	Desc string `json:"-"`
	// contains filtered or unexported fields
}

type CheckItemParams

type CheckItemParams func(sp, sgp string) bool

type CheckList

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

func New

func New(sourcePath string) *CheckList

func (CheckList) RunTasks

func (c CheckList) RunTasks() (successful []string, failed []string)

RunTasks is a wrapper for running all tasks from the list

type FileType

type FileType int
const (
	TypeDir FileType = iota
	TypeFile
	TypeBoth
)

Jump to

Keyboard shortcuts

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