Skip to content

Commit

Permalink
Combine write into one command so you can do both simultaneously.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed May 17, 2024
1 parent 2e334e6 commit 3940e12
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."`
Expand Down

0 comments on commit 3940e12

Please sign in to comment.