mon

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailsOpts added in v0.0.8

type DetailsOpts struct {
	ShowAllFiles bool
}

type Mon

type Mon struct {
	*Opts
	// contains filtered or unexported fields
}

func New

func New(opts *Opts) (*Mon, error)

func (*Mon) GetStatusSnapshot added in v0.0.9

func (m *Mon) GetStatusSnapshot(packages, final bool) *StatusSnapshot

func (*Mon) Run

func (m *Mon) Run(ctx context.Context) error

func (*Mon) Teardown

func (m *Mon) Teardown()

type Opts

type Opts struct {
	NoColor    bool
	ProjectDir string
	Listeners  []listeners.Listener

	DetailsOpts *DetailsOpts
}

func (*Opts) OK

func (o *Opts) OK() error

type StatusSnapshot added in v0.0.9

type StatusSnapshot struct {
	*DetailsOpts

	NumFilesCreated int64            `json:"num_files_created"`
	NumFilesDeleted int64            `json:"num_files_deleted"`
	NewFiles        []string         `json:"new_file_paths"`
	DeletedFiles    []string         `json:"deleted_file_paths"`
	WrittenFiles    map[string]int64 `json:"file_writes"`

	NumCommits      int64            `json:"num_commits"`
	LinesAdded      int64            `json:"lines_added"`
	LinesDeleted    int64            `json:"lines_deleted"`
	UnstagedChanges int64            `json:"unstaged_changes"`
	Commits         []*object.Commit `json:"-"`
	Patch           *object.Patch    `json:"-"`

	StartTime time.Time `json:"start_time"`
	LastWrite time.Time `json:"last_write"`

	ListenerDiffs listeners.DiffMap `json:"-"`
}

func (*StatusSnapshot) Final added in v0.0.9

func (s *StatusSnapshot) Final() string

func (*StatusSnapshot) Live added in v0.0.9

func (s *StatusSnapshot) Live() string

Jump to

Keyboard shortcuts

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