app

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package app implements the functionality of the txtract command, the CLI does the argument parsing and dispatches to this package to perform the requested action.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App represents the txtract application.

func New

func New(stdout, stderr io.Writer, debug bool) App

New returns a new App.

func (App) Unzip

func (a App) Unzip(target, location string, force bool) error

Unzip unzips a txtar archive back into real filesystem directories and files.

Force controls whether or not to overwrite existing files and directories with the archive contents.

func (App) Zip

func (a App) Zip(target, name, location string, force bool) error

Zip zips up a filesystem directory into a txtar archive named name under location.

Force controls whether or not to overwrite the archive if it already exists.

Jump to

Keyboard shortcuts

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