GPRESS a command-line tool for compressing/decompressing files using my own compression library: GCOMPRESSOR implemented in Golang 🗜
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources
.gitignore
.travis.yml
Dockerfile
README.md
error_handler.go
gpress.go
help.go
logger.go

README.md

GPRESS

A command-line tool for compressing and decompressing files using GCOMPRESSOR library (https://github.com/jkulak/gcompressor).

Usage

usage: gpress [--decompress] [--verbose] --sourcefile <file>

--decompress            decompress file
--help                  display help
--sourcefile            file to be compressed or decompressed
--verbose               add debug output
--version               display program version

To compress files

$ gpress --sourcefile file_to_compress.txt

To decompress files

$ gpress --decompress --sourcefile file_to_decompress.txt

Compilation

I like to use Docker 🐳 to work with Golang on my local dev machine.

Run the build

$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.6 go build -v

Work inside the Docker container (you should set the GOPATH env variable)

$ docker run --rm -ti -e "GOPATH=/root/go" -v "$PWD":/root/go -w /root/go golang:1.6 bash

Build, test and doc status

Build Status Go Report Card GoDoc