https://github.com/followtheprocess/txtract
A CLI to interact with https://pkg.go.dev/golang.org/x/tools/txtar archive files
https://github.com/followtheprocess/txtract
go txtar
Last synced: 4 months ago
JSON representation
A CLI to interact with https://pkg.go.dev/golang.org/x/tools/txtar archive files
- Host: GitHub
- URL: https://github.com/followtheprocess/txtract
- Owner: FollowTheProcess
- License: apache-2.0
- Created: 2025-01-02T18:22:46.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-21T09:41:19.000Z (4 months ago)
- Last Synced: 2025-02-24T12:19:13.512Z (4 months ago)
- Topics: go, txtar
- Language: Go
- Homepage:
- Size: 527 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# txtract
[](https://github.com/FollowTheProcess/txtract)
[](https://goreportcard.com/report/github.com/FollowTheProcess/txtract)
[](https://github.com/FollowTheProcess/txtract)
[](https://github.com/FollowTheProcess/txtract/actions?query=workflow%3ACI)
[](https://codecov.io/gh/FollowTheProcess/txtract)A CLI to interact with txtar archive files 📂
## Project Description
[txtar] is an incredibly useful tiny archive format, able to trivially store a miniature filesystem in a single plain text file. It particularly shines for storing test cases!
Most of the time a txtar archive is created manually, but what if you already have a directory full of stuff and you want to instead store them in txtar. Or you have a txtar
archive that you want to instantly replicate on your filesystem!That's where `txtract` comes in 🚀

## Installation
Compiled binaries for all supported platforms can be found in the [GitHub release]. There is also a [homebrew] tap:
```shell
brew install FollowTheProcess/tap/txtract
```## Quickstart
Recursively zip up the contents of a directory into a single txtar file named yourdirectory.txtar
```shell
txtract zip ./yourdirectory
```Or go the other way, unzip a txtar file back into your filesystem:
```shell
txtract unzip yourdirectory.txtar
```### Credits
This package was created with [copier] and the [FollowTheProcess/go_copier] project template.
[copier]: https://copier.readthedocs.io/en/stable/
[FollowTheProcess/go_copier]: https://github.com/FollowTheProcess/go_copier
[GitHub release]: https://github.com/FollowTheProcess/txtract/releases
[homebrew]: https://brew.sh
[txtar]: https://pkg.go.dev/golang.org/x/tools/txtar