archive

package
v0.0.287 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Types

type CreateParams

type CreateParams struct {
	Output     string   `short:"o" help:"Output archive file name (format auto-detected from extension)"`
	Files      []string `pos:"true" optional:"true" help:"Files and directories to archive"`
	Verbose    bool     `short:"v" optional:"true" help:"Verbose output - list files as they are added"`
	Format     string   `` /* 176-byte string literal not displayed */
	Password   string   `short:"p" optional:"true" help:"Password for encrypted ZIP archives"`
	Encryption string   `` /* 171-byte string literal not displayed */
}

CreateParams holds parameters for archive creation

type ExtractParams

type ExtractParams struct {
	Archive  string `pos:"true" help:"Archive file to extract"`
	Output   string `short:"o" optional:"true" help:"Output directory (default: current directory)" default:"."`
	Verbose  bool   `short:"v" optional:"true" help:"Verbose output - list files as they are extracted"`
	Password string `short:"p" optional:"true" help:"Password for encrypted archives (zip, 7z, rar)"`
}

ExtractParams holds parameters for archive extraction

type ListParams

type ListParams struct {
	Archive  string `pos:"true" help:"Archive file to list"`
	Long     bool   `short:"l" optional:"true" help:"Long listing format (show size and permissions)"`
	Password string `short:"p" optional:"true" help:"Password for encrypted archives (zip, 7z, rar)"`
}

ListParams holds parameters for listing archive contents

Jump to

Keyboard shortcuts

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