Skip to content

Commit e736e5d

Browse files
committed
tar2arx can now take a (compressed) tar file as option.
As we integrate niffler to detect the compression, user don't need to use an external `zcat`/`xzcat`/...
1 parent 4c4a674 commit e736e5d

File tree

5 files changed

+139
-39
lines changed

5 files changed

+139
-39
lines changed

Cargo.lock

+103-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,11 @@ zip2ar -o my_archive.arx my_zip_archive.zip
100100
Converting a tar archive to an arx archive
101101
------------------------------------------
102102

103-
The tool `tar2arx` works on uncompressed tar file.
104-
Most of the time, you will have a copmressed tar file (`tar.gz`, ...)
105-
`tar2arx` expect the tar content to be given on its standard input.
106-
107103
```
108-
gzip -d my_archive.tar.gz | tar2arx -o my_archive.arx
104+
tar2arx -o my_archive.arx my_tar_archive.tar.gz
109105
```
110106

111107

112-
113108
Performance
114109
===========
115110

tar2arx/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ jbk.workspace = true
1616
clap.workspace = true
1717
indicatif.workspace = true
1818
tar = "0.4.39"
19+
niffler = "2.5.0"

tar2arx/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creating an archive is simple :
2020

2121

2222
```
23-
gzip -d foo.tar.gz | tar2arx -o foo.arx
23+
tar2arx -o foo.arx foo.tar.gz
2424
```
2525

2626
Read arx archive

0 commit comments

Comments
 (0)