Commit Graph

129 Commits

Author SHA1 Message Date
5ac7f92f1d
Add hint to man page. 2021-05-24 06:03:32 +02:00
3ad4e49e3d
Don't dump zip files to stdout. 2021-05-24 05:46:12 +02:00
2ab4705475
Make --regexp required, show help if it is not given. 2021-05-24 05:45:42 +02:00
4b2fbecf93
Print all options at start.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-23 16:52:32 +02:00
03e07dfc3e
Rework option parsing a bit.
- Add --basic-regexp
- Add --grep
- Remove --input-file
- Make it possible to have multiple --regexp
2021-05-23 16:23:07 +02:00
e773d4b78a
Implement zip::read_file() – Read file in archive; add test.
Also added zip::open_file() and zip::close_file() to deduplicate code.
2021-05-23 08:56:58 +02:00
6334b7051f
Newline before printing error messages. 2021-05-23 08:55:15 +02:00
28c6c80def
Set C locale, treat EPUB file names as UTF-8.
EPUB file names MUST be UTF-8. ASCII is a subset of UTF-8.
2021-05-23 06:32:56 +02:00
6c040fa951
Add first test.
Some checks failed
continuous-integration/drone/push Build is failing
- Compile everything in src/ except main.cpp into a static library
- Link the static library into tests
- Add test for zip::list()
2021-05-21 09:27:31 +02:00
8c8a19b86b
Cosmetic changes. 2021-05-21 07:10:46 +02:00
a941bcced3
Initialize the variables where they're needed. 2021-05-21 07:05:44 +02:00
354583bcbd
Add short descriptions. 2021-05-21 06:54:01 +02:00
7ecb634473
Return failure on zip error. 2021-05-21 04:12:58 +02:00
1229e295ef
Set locale for std::cerr. 2021-05-21 04:10:11 +02:00
1a80f770ff
Fix error messages. 2021-05-21 04:04:17 +02:00
4e8c6e7489
Add exception for zip processing.
Some checks failed
continuous-integration/drone/push Build is failing
- New dependency: libfmt.
- Translate error messages.
2021-05-21 03:25:42 +02:00
222f802015
Basic zip file support.
All checks were successful
continuous-integration/drone/push Build is passing
Dumping the TOC works.
2021-05-21 01:56:37 +02:00
031e2f0db6
Use sub-namespaces for functionality-groups. 2021-05-21 01:50:13 +02:00
10e84a7707
Translate Error messages in main(). 2021-05-21 01:48:55 +02:00
7007d5e89a
Add single letter options. 2021-05-20 11:51:08 +02:00
231ec20cd5
Rename input → input-file. 2021-05-20 11:43:35 +02:00
9a136b87a9
Add --regexp and --input, add both as positional options. 2021-05-20 11:33:33 +02:00
bfb59da98d
std::filesystem compatibility for older GCC.
All checks were successful
continuous-integration/drone/push Build is passing
The header was in experimental a while ago and the implementation was a
separate library.
2021-05-20 10:37:45 +02:00
cf8fb95777
Switch to fs::path where appropriate.
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-20 10:20:42 +02:00
f57555fb3a
Fix documentation of get_config_path(). 2021-05-20 10:03:09 +02:00
370382d44d
Add basic error handling. 2021-05-20 09:05:52 +02:00
f95389d76c
Add support for config file. 2021-05-20 09:05:39 +02:00
94c25552a1
Add translation support, german translation. 2021-05-20 07:09:21 +02:00
678b506a8c
Initial commit.
- Add skeleton
- Add command-line parsing
2021-05-20 04:34:06 +02:00