todo

package
v0.0.7-0...-c50528f Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedCommand = errors.New("unexpected command")
	ErrMissingLabel      = errors.New("missing label")
	ErrMissingCommit     = errors.New("missing commit")
	ErrMissingExecCmd    = errors.New("missing command for exec")
	ErrMissingRef        = errors.New("missing ref")
)

Functions

func Write

func Write(f io.Writer, todos []Todo, commentChar byte) error

Types

type Todo

type Todo struct {
	Command     TodoCommand
	Commit      string
	Flag        string
	Comment     string
	ExecCommand string
	Label       string
	Msg         string
	Ref         string
}

func Parse

func Parse(f io.Reader, commentChar byte) ([]Todo, error)

type TodoCommand

type TodoCommand uint8
const (
	Pick TodoCommand = iota + 1
	Revert
	Edit
	Reword
	Fixup
	Squash

	Exec
	Break
	Label
	Reset
	Merge

	NoOp
	Drop
	UpdateRef

	Comment
)

func (TodoCommand) String

func (t TodoCommand) String() string

Jump to

Keyboard shortcuts

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