writer

package
v0.0.0-...-df6f3e2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo struct {
	File       string
	Line       int
	Message    string
	ByteOffset int
}

type TodoWriter

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

func NewTodoWriter

func NewTodoWriter(target string, depth int, relativePaths bool, ignoredFiles []string, ignoredDirs []string) *TodoWriter

func (*TodoWriter) GetList

func (td *TodoWriter) GetList() []Todo

Returns the writers current item list

func (*TodoWriter) PrintList

func (td *TodoWriter) PrintList()

Prints the formatted list

func (*TodoWriter) PrintRaw

func (td *TodoWriter) PrintRaw()

Prints raw todos without any formatting

func (*TodoWriter) Read

func (td *TodoWriter) Read(dirname string) error

Reads the given directory for todos and adds them to the writers list. The writer list is not cleared before reading.

Jump to

Keyboard shortcuts

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