archive-diff

command module
v0.0.0-...-13d9b3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

archive-diff

You can diff the contents of two folders, archives, rpm packages or any of the previous combinations.

Installation

go install github.com/jxsl13/archive-diff@latest

Bleeding edge:

go install github.com/jxsl13/archive-diff@main

Usage

$ archive-diff --help

  DIFF_DIRS_ONLY     only compare directories (default: "false")
  DIFF_FILES_ONLY    only compare files or symlinks (default: "false")
  DIFF_PERM_ONLY     only compare file permissions and sticky bit (default: "false")
  DIFF_OWNER_ONLY    only compare owner, group, gid and uid (default: "false")
  DIFF_EXCLUDE       exclude file paths matching regular expression after cut operation (default: "^$")
  DIFF_INCLUDE       include file paths matching regular expression after cut operation (default: ".*")
  DIFF_CUT           cut ^prefix or suffix$ or any other regular expression before comparing archive paths (default: "^$")

Usage:
  archive-diff a.tar.gz b.tar.xz [flags]
  archive-diff [command]

Available Commands:
  completion  Generate completion script
  help        Help about any command

Flags:
  -c, --cut string       cut ^prefix or suffix$ or any other regular expression before comparing archive paths (default "^$")
  -d, --dirs-only        only compare directories
  -e, --exclude string   exclude file paths matching regular expression after cut operation (default "^$")
  -f, --files-only       only compare files or symlinks
  -h, --help             help for archive-diff
  -i, --include string   include file paths matching regular expression after cut operation (default ".*")
  -o, --owner-only       only compare owner, group, gid and uid
  -p, --perm-only        only compare file permissions and sticky bit

Use "archive-diff [command] --help" for more information about a command.

Example usage:

archive-diff -d whatever-1.0.0-1.noarch.rpm whatever.tar.gz > archive.diff

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址