cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "unknown"
	BuildDate = "unknown"
)

Version information - set via ldflags at build time

Functions

func Execute

func Execute() error

Execute runs the root command with a background context. Prefer ExecuteContext for signal-aware execution.

func ExecuteContext added in v0.4.0

func ExecuteContext(ctx context.Context) error

ExecuteContext runs the root command with the given context, enabling graceful shutdown when the context is cancelled.

Types

type CLIDeletionProgress

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

CLIDeletionProgress reports deletion progress to the terminal.

func (*CLIDeletionProgress) OnComplete

func (p *CLIDeletionProgress) OnComplete(succeeded, failed int)

func (*CLIDeletionProgress) OnProgress

func (p *CLIDeletionProgress) OnProgress(processed, succeeded, failed int)

func (*CLIDeletionProgress) OnStart

func (p *CLIDeletionProgress) OnStart(total int)

type CLIProgress

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

CLIProgress implements gmail.SyncProgressWithDate for terminal output.

func (*CLIProgress) OnComplete

func (p *CLIProgress) OnComplete(summary *gmail.SyncSummary)

func (*CLIProgress) OnError

func (p *CLIProgress) OnError(err error)

func (*CLIProgress) OnLatestDate

func (p *CLIProgress) OnLatestDate(date time.Time)

func (*CLIProgress) OnProgress

func (p *CLIProgress) OnProgress(processed, added, skipped int64)

func (*CLIProgress) OnStart

func (p *CLIProgress) OnStart(total int64)

Jump to

Keyboard shortcuts

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