blob: 41feac2faca32aff8c6371a7a77a164b6b87a647 [file]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Binary kzipinfo is a tool to help explore kzip files in a human-readable format.
package main
import (
"context"
"flag"
"os"
"github.com/google/subcommands"
)
func main() {
subcommands.Register(subcommands.HelpCommand(), "")
subcommands.Register(subcommands.FlagsCommand(), "")
subcommands.Register(subcommands.CommandsCommand(), "")
subcommands.Register(infoCmd{}, "")
subcommands.Register(&lsCmd{}, "")
subcommands.Register(showCmd{}, "")
subcommands.Register(filesCmd{}, "")
subcommands.Register(catCmd{}, "")
flag.Parse()
os.Exit(int(subcommands.Execute(context.Background())))
}