view

package
v4.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrQuit = errors.New("quit the process")

Functions

func ProcessWithConfirmation added in v4.0.2

func ProcessWithConfirmation[T any](ctx context.Context, seq iter.Seq2[T, error], title func(T) string, process func(entry T) error) error

ProcessWithConfirmation processes each entry in the sequence with a confirmation prompt.

func TryCloneNotify

func TryCloneNotify(
	ctx context.Context,
	notify try.Notify,
) try.Notify

TryCloneNotify is a wrapper for the TryCloneNotify function to log the status.

Types

type FileSelection added in v4.0.2

type FileSelection struct {
	Selected []string
	Skipped  []string
}

FileSelection represents the result of file selection

func ConfirmFilesIterative added in v4.0.2

func ConfirmFilesIterative(ctx context.Context, repoPath string, files []string) (*FileSelection, error)

ConfirmFilesIterative shows files one by one for confirmation

func SelectFiles added in v4.0.2

func SelectFiles(ctx context.Context, repoPath string, files []string) (*FileSelection, error)

SelectFiles shows an interactive file selection dialog

Jump to

Keyboard shortcuts

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