Skip to content

ankitpokhrel/pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pack

A small utility to create archives while ignoring any hidden or unnecessary files and folders. It uses git style pattern matching.

Installation

Install the runnable binary to your $GOPATH/bin.

go get github.com/ankitpokhrel/pack

Or, download the latest release.

Usage

NAME:
   pack - Pack create archives while ignoring any hidden or unnecessary files and folders

USAGE:
   pack [global options] command [command options] <src> <dest>

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --ignore value, --ig value  Ignore list from given files
   --help, -h                  show help (default: false)

Example

Given a .gitignore and .ignoremetoo file:

$ cat .gitignore

vendor/
*.swp
*~

$ cat .ignoremetoo

file.txt
*.png

The following command will create destination.zip file by ignoring all patterns mentioned in .gitignore and .ignoremetoo.

$ pack --ig .gitignore --ig .ignoremetoo /path/to/file-to-compress /path/to/destination.zip

About

A small utility to create archives while ignoring any hidden or unnecessary files. It uses git style pattern matching.

Topics

Resources

License

Stars

Watchers

Forks

Languages