archivecli

package
v0.0.55 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(root *cobra.Command, opts Options)

func EmitError

func EmitError(textWriter, jsonWriter io.Writer, mode string, err error)

func EmitOK

func EmitOK(writer io.Writer, mode string, value any)

Types

type Options

type Options struct {
	GetArchiveID       func(id int) (int, error)
	OutputMode         func() string
	ReplicatePrefix    func(id int) string
	RootDir            func() string
	ArchiveSuffix      func() string
	GetSourceDir       func(ctx context.Context, id int) (string, error)
	GetArchiveFilePath func(ctx context.Context, id int, pack bool) (string, error)
}

Jump to

Keyboard shortcuts

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