archive

command module
v0.0.0-...-e49b7fb Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2016 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

archive

cross-platform bin to create / extract zip, tgz archives.

Install

Pick an msi package here!

deb/ubuntu/rpm repositories

wget -O - https://raw.githubusercontent.com/mh-cbon/latest/master/source.sh \
| GH=mh-cbon/archive sh -xe
# or
curl -L https://raw.githubusercontent.com/mh-cbon/latest/master/source.sh \
| GH=mh-cbon/archive sh -xe

deb/ubuntu/rpm packages

curl -L https://raw.githubusercontent.com/mh-cbon/latest/master/install.sh \
| GH=mh-cbon/archive sh -xe
# or
wget -q -O - --no-check-certificate \
https://raw.githubusercontent.com/mh-cbon/latest/master/install.sh \
| GH=mh-cbon/archive sh -xe

chocolatey

choco install archive -y

go

mkdir -p $GOPATH/src/github.com/mh-cbon
cd $GOPATH/src/github.com/mh-cbon
git clone https://github.com/mh-cbon/archive.git
cd archive
glide install
go install

Usage

NAME:
   archive - Command line to create and extract archive files

USAGE:
   archive <cmd> <options>

VERSION:
   0.0.0

COMMANDS:
     create     Create a new archive
     extract    Extract an archive file

GLOBAL OPTIONS:
   --help, -h      show help
   --version, -v   print the version
create
NAME:
   archive create - Create a new archive

USAGE:
   archive create [command options] [arguments...]

OPTIONS:
   --output value, -o value	      Output file
   --change-dir value, -C value	  Change directory before archiving files
   --force, -f			              Force overwrite

EXAMPLES:
  archive create -o test.zip README.md
  archive create -o test.zip uncompress
  archive create -o test.zip README.md uncompress
  archive create -o build/test.zip README.md uncompress
  archive create -o build/test.tgz README.md uncompress
  archive create -o build/test.tar.gz README.md uncompress
  archive create -o test.zip -C fixtures/create/test1/ .
extract
NAME:
   archive extract - Extract an archive file

USAGE:
   archive extract [command options] [arguments...]

OPTIONS:
   --dest value, -d value	Destination path
   --force, -f			Force overwrite

EXAMPLES:
  archive extract -d res build/test.zip
  archive extract -d res build/test.tar.gz

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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