From 991389603c42ec537b1b2a4ef8469bc6e87399a2 Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Tue, 9 Jun 2020 13:41:41 +0900 Subject: [PATCH] Add completions for xxHash --- CHANGELOG.rst | 1 + share/completions/xxh128sum.fish | 1 + share/completions/xxh32sum.fish | 1 + share/completions/xxh64sum.fish | 11 +++++++++++ share/completions/xxhsum.fish | 4 ++++ 5 files changed, 18 insertions(+) create mode 100644 share/completions/xxh128sum.fish create mode 100644 share/completions/xxh32sum.fish create mode 100644 share/completions/xxh64sum.fish create mode 100644 share/completions/xxhsum.fish diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5f2eaffb9..1d175333c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -133,6 +133,7 @@ Completions - ``tig`` - ``windscribe`` - ``wireshark``, ``tshark``, and ``dumpcap`` + - ``xxhsum``, ``xxh32sum``, ``xxh64sum`` and ``xxh128sum`` - ``zopfli``, and ``zopflipng`` Deprecations and removed features diff --git a/share/completions/xxh128sum.fish b/share/completions/xxh128sum.fish new file mode 100644 index 000000000..91a67cafb --- /dev/null +++ b/share/completions/xxh128sum.fish @@ -0,0 +1 @@ +complete -c xxh128sum -w xxh64sum diff --git a/share/completions/xxh32sum.fish b/share/completions/xxh32sum.fish new file mode 100644 index 000000000..c86395a86 --- /dev/null +++ b/share/completions/xxh32sum.fish @@ -0,0 +1 @@ +complete -c xxh32sum -w xxh64sum diff --git a/share/completions/xxh64sum.fish b/share/completions/xxh64sum.fish new file mode 100644 index 000000000..49e56a5ee --- /dev/null +++ b/share/completions/xxh64sum.fish @@ -0,0 +1,11 @@ +complete -c xxh64sum -s V -l version -d "Display version" +complete -c xxh64sum -l little-endian -d "Display hashes in little endian" +complete -c xxh64sum -s h -l help -d "Display help" +complete -c xxh64sum -s c -l check -d "Check xxHash sums" +complete -c xxh64sum -s q -l quiet -d "Don't print OK when the checksum match" +complete -c xxh64sum -l strict -d "Exit non-zero if any line is invalid" +complete -c xxh64sum -l status -d "Don't output anything" +complete -c xxh64sum -s w -l warn -d "Warn about invalid lines" +complete -c xxh64sum -s b -d "Run a benchmark" +complete -c xxh64sum -s B -d "Test data block size of benchmark" +complete -c xxh64sum -s i -d "Number of benchmark iterations" diff --git a/share/completions/xxhsum.fish b/share/completions/xxhsum.fish new file mode 100644 index 000000000..4cc62ee92 --- /dev/null +++ b/share/completions/xxhsum.fish @@ -0,0 +1,4 @@ +complete -c xxhsum -w xxh64sum +complete -c xxhsum -o H0 -d "32bits hash" +complete -c xxhsum -o H1 -d "64bits hash" +complete -c xxhsum -o H2 -d "128bits hash"