https://github.com/karstenpedersen/pack
CLI tool for archiving files.
https://github.com/karstenpedersen/pack
cli cobra-cli golang
Last synced: 4 months ago
JSON representation
CLI tool for archiving files.
- Host: GitHub
- URL: https://github.com/karstenpedersen/pack
- Owner: karstenpedersen
- Created: 2024-10-04T15:05:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-04T22:19:20.000Z (6 months ago)
- Last Synced: 2025-08-13T19:40:34.166Z (5 months ago)
- Topics: cli, cobra-cli, golang
- Language: Go
- Homepage:
- Size: 12.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pack
CLI tool to make it easier to archive files.
## Get started
Start by initializing pack:
```bash
pack init
```
This will create a `pack.config.json` file:
```json
{
"name": "pack",
"method": "zip",
"outDir": ".pack-out",
"include": [],
"hooks": {}
}
```
You can then specify what files you want to include. Here I specify that I want to include all markdown files:
```json
{
"name": "pack",
"method": "zip",
"outDir": ".pack-out",
"include": [
"*.md"
],
"hooks": {}
}
```
We can now run `pack check` to see what files will get packaged and `pack run` to zip them to `.pack-out/pack.zip`.
## Example Use Case
I created this tool to zip files for my school assignments. With `pack run` I can compile LaTeX and then package its output together with my source code and other files.
## Commands
```bash
pack # help
pack --help # help
pack --version # prints version
pack init # initialize pack config
pack check # check what files will be packaged
pack run # package files
pack show # show packaged files
```