archive

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

go-archive

CircleCI

Go tool for creating and reading archive files.

latest release 0.1.0

Install

Get with go command

go get -u github.com/medtune/go-archive/...

Usage

Usage: archiver <flags> <subcommand> <subcommand args>

Subcommands:
	commands         list all command names
	compress         compress a file
	decompress       decompress a file
	flags            describe all known top-level flags
	help             describe subcommands and their syntax


Use "compress flags" for a list of top-level flags
exit status 2

Subcommands

Decompress
archiver decompress [-t archive type] [-d destination] somefile:
    decompress somefile to wanted kind (zip by default).
    -d string
    	destination
    -t string
    	archive type (default "zip")
Compress
archiver compress [-d destination] [-k archive type] somefile:
    compress somefile to wanted kind (zip by default).
    -t string
    	archive type (default "zip")

TODO

  • archiver commmand
  • zip support
  • support concurent Compress/Decompress mechanics
  • tar support
  • gzib support

Documentation

Index

Constants

View Source
const (
	VERSION = "0.1.0"
)

Variables

View Source
var (
	// Zip default instance
	Zip = &zipper{}
)

Functions

This section is empty.

Types

type Archiver

type Archiver interface {
	Meta() archiverMetadata
	Check(file string) bool
	Compress(file string, dest string) error
	Decompress(file, dest string) error
}

Archiver as defined

func Pick

func Pick(kind string) (Archiver, error)

Pick one archiver for kind

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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