https://github.com/ankitpokhrel/pack
A small utility to create archives while ignoring any hidden or unnecessary files. It uses git style pattern matching.
https://github.com/ankitpokhrel/pack
archive compression go golang gzip hactoberfest2020 rar tar zip
Last synced: 5 months ago
JSON representation
A small utility to create archives while ignoring any hidden or unnecessary files. It uses git style pattern matching.
- Host: GitHub
- URL: https://github.com/ankitpokhrel/pack
- Owner: ankitpokhrel
- License: mit
- Created: 2020-07-26T10:28:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-14T08:03:43.000Z (about 3 years ago)
- Last Synced: 2025-04-28T03:28:03.151Z (5 months ago)
- Topics: archive, compression, go, golang, gzip, hactoberfest2020, rar, tar, zip
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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`.
```sh
go get github.com/ankitpokhrel/pack
```Or, download the [latest release](https://github.com/ankitpokhrel/pack/releases).
### Usage
```sh
NAME:
pack - Pack create archives while ignoring any hidden or unnecessary files and foldersUSAGE:
pack [global options] command [command options]COMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--ignore value, --ig value Ignore list from given files
--help, -h show help (default: false)
```### Example
Given a `.gitignore` and `.ignoremetoo` file:
```sh
$ cat .gitignorevendor/
*.swp
*~$ cat .ignoremetoo
file.txt
*.png
```The following command will create `destination.zip` file by ignoring all patterns mentioned in `.gitignore` and `.ignoremetoo`.
```sh
$ pack --ig .gitignore --ig .ignoremetoo /path/to/file-to-compress /path/to/destination.zip
```