You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cli(archive): compare archives via an unpacker/virtualizer plugin
Add 'archive --unpacker PLUGIN_ID': discover the named
unpacker/folder_virtualizer plugin, run its unpack_folder operation on
each archive to get a VirtualNode tree, and compare the two trees via
compare_virtual_trees — instead of the built-in tar/unzip extractor.
Useful for archive formats the built-in cannot read. Reports a summary
(text/JSON) and exits 0 (equal) / 1 (differ) / 2 (error). The plugin
must declare the unpacker or folder_virtualizer class.
This completes the discovery -> invoke -> compare wiring for Phase 6's
folder-virtualizer routing; automatic extension/MIME fallback to a
plugin remains.
Test installs a virtualizer fixture (one-file tree hashed from content)
and asserts equal archives exit 0, differing archives exit 1 with JSON
detail, and an unknown plugin id exits 2.
provides scriptable access to LinSync comparison primitives.
6061
6164
.SH COMMANDS
6062
6165
.TP
6063
-
.B archive [--keep-temp] [--json] LEFT RIGHT
6064
-
Compare two archive files by extracting them (via tar / unzip subprocesses) and running a folder compare on the extracted trees. Supported extensions: .zip, .jar, .war, .apk, .ipa, .tar, .tgz, .tar.gz, .tbz2, .tar.bz2, .txz, .tar.xz, .tzst, .tar.zst.
6166
+
.B archive [--keep-temp] [--json] [--unpacker PLUGIN_ID] LEFT RIGHT
6167
+
Compare two archive files by extracting them (via tar / unzip subprocesses) and running a folder compare on the extracted trees. Supported extensions: .zip, .jar, .war, .apk, .ipa, .tar, .tgz, .tar.gz, .tbz2, .tar.bz2, .txz, .tar.xz, .tzst, .tar.zst. --unpacker PLUGIN_ID instead routes both archives through an installed unpacker / folder_virtualizer plugin (its unpack_folder operation) and compares the resulting virtual trees by SHA-256/size — useful for formats the built-in extractor cannot read.
6065
6168
.TP
6066
6169
.B cache clear [--scope webcompare]
6067
6170
Clear LinSync cache directories. Currently the only supported scope is webcompare (the webpage compare HTTP fetch cache under $XDG_CACHE_HOME/linsync/webcompare).
@@ -6154,7 +6257,7 @@ fn print_help() {
6154
6257
linsync-cli {}
6155
6258
6156
6259
USAGE:
6157
-
linsync-cli archive [--keep-temp] [--json] LEFT RIGHT
6260
+
linsync-cli archive [--keep-temp] [--json] [--unpacker PLUGIN_ID] LEFT RIGHT
0 commit comments