diff options
author | Cameron Katri <me@cameronkatri.com> | 2022-05-21 23:44:49 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2022-05-21 23:44:49 -0400 |
commit | 2288b178e612386e7a75471c8861c3f6d81c300d (patch) | |
tree | 18209f47e0bc635000f7bf86b83f43a9ab0aa3ea /tc.1 | |
parent | aa035f73ce081b3f07247bd15860d72355a096b2 (diff) | |
download | trustcache-2288b178e612386e7a75471c8861c3f6d81c300d.tar.gz trustcache-2288b178e612386e7a75471c8861c3f6d81c300d.tar.zst trustcache-2288b178e612386e7a75471c8861c3f6d81c300d.zip |
Add tc remove and append -f flags
Also fix some conflicting types to hopefully prevent possible overflows.
Diffstat (limited to 'tc.1')
-rw-r--r-- | tc.1 | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -31,6 +31,7 @@ .Sh SYNOPSIS .Nm .Cm append +.Op Fl f Ar flags .Op Fl u Ar uuid | 0 .Ar infile .Ar @@ -46,6 +47,11 @@ .Op Fl h .Op Fl e Ar entrynum .Ar file +.Nm +.Cm remove +.Op Fl k +.Ar file +.Ar hash ... .Sh DESCRIPTION The .Nm @@ -56,6 +62,7 @@ The following commands are supported by .Bl -tag -width create .It Xo .Cm append +.Op Fl f Ar flags .Op Fl u Ar uuid | 0 .Ar infile .Ar @@ -68,6 +75,10 @@ is used to specify a custom uuid to be used. If it is .Ar 0 , the uuid will be left the same, otherwise, it will be regenerated. +If +.Fl f +is specified, any new entries with have the flags specified at +.Ar flags . .It Xo .Cm create .Op Fl u Ar uuid @@ -107,6 +118,18 @@ is given, only the header will be printed. If .Ar entrynum is specified, only that entry will be printed. +.It Xo +.Cm remove +.Op Fl k +.Ar file +.Ar hash ... +.Xc +Remove each specified hash from +.Ar file . +If +.Fl k +is specified, the uuid will not be regenerated. +The number of removed entries will be printed. .El .Sh EXIT STATUS .Ex -std |