From 3940e12562f0e3b902f13140246a3872d6315704 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 17 May 2024 14:05:17 +0800 Subject: [PATCH] Combine write into one command so you can do both simultaneously. --- main.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index fe54538..8b91070 100644 --- a/main.go +++ b/main.go @@ -52,16 +52,12 @@ var cli struct { Bucket string `help:"Remote bucket"` } `cmd:"" help:"Fetch one tile from a local or remote archive and output on stdout."` - WriteHeader struct { + Write struct { Input string `arg:"" help:"Input archive file." type:"existingfile"` - HeaderJsonFile string `arg:"" help:"Input header JSON (written by show --header-json)." type:"existingfile"` - } `cmd:"" help:"Write header data to an existing archive in-place."` - - WriteMetadata struct { - Input string `arg:"" help:"Input archive file." type:"existingfile"` - MetadataFile string `arg:"" help:"Input metadata JSON." type:"existingfile"` + HeaderJson string `help:"Input header JSON file (written by show --header-json)." type:"existingfile"` + MetadataFile string `help:"Input metadata JSON (written by show --metadata)." type:"existingfile"` Tmpdir string `help:"An optional path to a folder for tmp data." type:"existingdir"` - } `cmd:"" help:"Write JSON metadata to an existing archive in-place."` + } `cmd:"" help:"Write header data or metadata to an existing archive."` Extract struct { Input string `arg:"" help:"Input local or remote archive."`