35 Commits

Author SHA1 Message Date
Timofey Solomko ea9aaccfb9 Update copyright year to 2026 2026-01-31 15:30:24 +08:00
Timofey Solomko fa4af5803a [TAR] Remove compatibility functions for FileHandle 2024-04-21 17:18:53 +03:00
Timofey Solomko ed66991cbd Update copyright year to 2024 2024-01-11 16:57:04 +03:00
Timofey Solomko 43132fc39d Update copyright year to 2023 2023-02-07 15:31:45 +02:00
Timofey Solomko 987111c620 [swcomp] Fix build issues on linux and windows due to absence of autoreleasepool 2022-10-12 13:13:59 +03:00
Timofey Solomko 41a1474b8c [swcomp] Implement --list option for container commands
In addition, slightly adjusted the help message for the --info option to make them more distinguishable.
2022-05-20 17:11:19 +03:00
Timofey Solomko c9e10ebc35 [swcomp] Rework exiting with error codes
Different errors now have different error codes, the code for exiting is now standardized.
2022-05-20 17:00:22 +03:00
Timofey Solomko 1000194a7e [swcomp] Make all classes final 2022-01-09 14:44:40 +03:00
Timofey Solomko 3caacff134 [swcomp] Add FileHandle closeCompat() extension
This is the same one used in tests.
2022-01-09 14:33:22 +03:00
Timofey Solomko 3388cb047b [TAR] Rename the second argument of TarWriter.init to force
This is for consistency with TarContainer.create.
2022-01-09 14:17:00 +03:00
Timofey Solomko 79a0aa8d08 Fix compilation issues on Linux and Windows due to the absence of autoreleasepool 2022-01-08 15:47:16 +03:00
Timofey Solomko c4aab7b648 [swcomp] Remove --use-rw-api option from tar command
Swcomp now uses TarReader/Writer automatically, if possible (when there is no compression involved).
2022-01-08 15:38:58 +03:00
Timofey Solomko 79295db930 Update copyright year to 2022 2022-01-08 15:02:59 +03:00
Timofey Solomko 4c282c6fae [swcomp] Fix incorrect tar info printing when using TarReader 2022-01-08 14:34:34 +03:00
Timofey Solomko de9cf3916c [swcomp] Rewrite tar command info and extract rw-api versions using TarReader.process 2022-01-08 14:33:50 +03:00
Timofey Solomko fe9453173a [TAR] Rename TarReader.next() to read() 2022-01-08 14:33:40 +03:00
Phil Mitchell c5bbc713b3 [swcomp] Use autoreleasepool to immediately free memory when untarring file with rw-api 2022-01-02 11:13:17 -08:00
Timofey Solomko 0a5378a016 [swcomp] Add a second version of TarCommand.execute for use-rw-api option
It doesn't support any of the compression options, as well as format option.
2021-11-21 12:37:36 +03:00
Timofey Solomko c5efb9bf39 [swcomp] Clarify a couple of error messages 2021-11-21 11:56:07 +03:00
Timofey Solomko 6306365cde [swcomp] Add use-rw-api option to tar command
It enables usage of new TarReader/Writer APIs. For now only info option supports this.
2021-11-20 21:33:05 +03:00
Timofey Solomko 088d63ac03 [swcomp] Add --use-format option to tar command
This option allows to specify which TAR format to use when creating a container.
2021-10-25 20:01:00 +03:00
Timofey Solomko 68fd0e8f49 [swcomp] Compress after creating a tar container 2021-10-24 19:07:56 +03:00
Timofey Solomko dc93436269 [swcomp] Update to use SwiftCLI's property wrappers
This should fix all deprecation warnings.
2021-10-24 12:47:22 +03:00
Timofey Solomko 322fe5aaa8 [swcomp] Move createEntries function into a separate extension 2021-09-12 19:12:04 +03:00
Timofey Solomko e8e7bf1a72 [swcomp] Remove extra "try" in TarCommand 2021-07-28 11:14:32 +03:00
Timofey Solomko e83f23effa Update copyright year to 2021 2021-01-11 11:20:57 +02:00
Timofey Solomko 8ef90146e7 [swcomp] Improve the usage of articles in help messages 2020-05-18 13:18:32 +03:00
Timofey Solomko 31ec1f1553 Update copyright year to 2020 2020-01-01 19:06:33 +03:00
Timofey Solomko ce47019097 Update copyright year to 2019 2019-01-02 23:15:43 +03:00
Timofey Solomko b898b433f1 [swcomp] -v is now accepted as an alias for --verbose 2018-08-12 18:57:07 +03:00
Timofey Solomko 1c5ca3bbe5 Swiflinted before 4.4.0 2018-08-07 21:18:39 +03:00
Timofey Solomko 384af1cedd [swcomp] create option of tar command now supports verbose option 2018-08-01 21:23:03 +03:00
Timofey Solomko fcbe6d76da [swcomp] Implement create option for tar command 2018-08-01 21:22:25 +03:00
Timofey Solomko f2afe8ca16 [swcomp] Flush stdout after printing iteration number 2018-05-02 13:59:35 +03:00
Timofey Solomko cb91fd5899 [swcomp] Move source files into subfolders 2018-05-01 12:36:47 +03:00