subcommands

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: BSD-3-Clause-Clear Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AnsiClearLine = "\033[2K\r"

Variables

View Source
var SkipEntry = errors.New("skip this entry") //nolint:staticcheck // Ignore ST1012 rule for error names, as we mimic filepath.SkipXXX.

Functions

func ArchiveProgress

func ArchiveProgress(source fileSourcer, sizer func(os.FileInfo) int64) (p *progress, s fileSourcer)

func ArchiveSourcer

func ArchiveSourcer(dir string, skipper ...fileSkipper) fileSourcer

func FileProgress

func FileProgress(size int64) (p *progress)

func GzipStream

func GzipStream(source sourceWriter) io.ReadCloser

func TarProgress

func TarProgress(source fileSourcer) (*progress, fileSourcer)

func TarStream

func TarStream(source fileSourcer) sourceWriter

Types

type ArchiveEntry

type ArchiveEntry struct {
	RealPath string      // A real path the original file
	Path     string      // A path to that file inside an archive
	Info     os.FileInfo // A file info; if nil, will be taken from RealPath.
}

func (*ArchiveEntry) EnsureInfo

func (entry *ArchiveEntry) EnsureInfo() (err error)

type TableWriter

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

func NewTableWriter

func NewTableWriter(headers []string) *TableWriter

func (*TableWriter) AddRow

func (t *TableWriter) AddRow(columns ...any)

func (*TableWriter) Render

func (t *TableWriter) Render()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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