mirror of
https://gitea.home.endeavr.de/Marcel/Tarstats-pp.git
synced 2025-12-10 00:39:01 +01:00
Compare commits
4 Commits
v1.0-Relea
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| d68f98ddf6 | |||
|
|
9cabdcbe94 | ||
|
|
3446ca5866 | ||
|
|
626494720d |
@@ -1,12 +1,12 @@
|
||||
# Tarstats-++
|
||||
Tool to provide stats of a tarball.
|
||||
http://github.com/blindi815/Tarstats-pp
|
||||
Version: v1.0-Release
|
||||
Version: v1.0.1-FixRelease
|
||||
|
||||
## General information
|
||||
This is a little command line tool to provide statistics on a GNU tar file. It is a personal project to further self study programming using C++.
|
||||
|
||||
The project is inspired by https://github.com/isotopp/tarstats by @github/isotopp and the Twitter thread https://twitter.com/isotopp/status/1489549907841146882
|
||||
The project is inspired by https://github.com/isotopp/tarstats and the Twitter thread https://twitter.com/isotopp/status/1489549907841146882
|
||||
|
||||
### Limitations
|
||||
This tool works on standard .tar files as well on tarfiles compressed by GNU zip. Other compression methods are not supported. This does not yet parse tarballs inside a tarball.
|
||||
@@ -24,7 +24,7 @@ sudo cmake --install .
|
||||
## Usage
|
||||
```
|
||||
$ tarstats_pp
|
||||
usage: tarstats-pp [-h] [-j] [-f] tarfile.
|
||||
usage: tarstats-pp [-h] [-j] [-f] tarfile [tarfile...]
|
||||
A tool to calculate basics statistics on tarball. Shamelessly inspired by github.com/isotopp/tarstats!
|
||||
|
||||
mandatory argument:
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace tarconstant {
|
||||
//global version
|
||||
inline std::string const version = "v1.0-Release";
|
||||
inline std::string const version = "v1.0.1-FixRelease";
|
||||
|
||||
// global itemtype definition
|
||||
inline std::string const typeFile = "FILES";
|
||||
@@ -31,7 +31,7 @@ namespace tarconstant {
|
||||
inline std::pair<uint8_t , uint8_t> itemoctlnByte {124,11}; // at offset 124 because first byte
|
||||
// marks octal or base256 coding
|
||||
inline std::string helptext
|
||||
{"usage: tarstats-pp [-h] [-j] [-f] tarfile.\n"
|
||||
{"usage: tarstats-pp [-h] [-j] [-f] tarfile [tarfile...]\n"
|
||||
"A tool to calculate basics statistics on tarball. Shamelessly inspired by github.com/isotopp/tarstats!\n\n"
|
||||
"mandatory argument:\n"
|
||||
"tarfile a tarfile to calculate stats on\n\n"
|
||||
|
||||
Reference in New Issue
Block a user