blob: b6e565a8ab86e50797ea44e6857f587e8ae8470e [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This tool provides access to the set of outputs generated by Fuchsia CI builds. Build
// output directories are referenced by build id.
//
// Example usage:
//
// $ artifacts ls -build=1234567890
// $ artifacts cp -build=2345678900 -src=packages.tar.gz -dst=local/packages.tar.gz
package main
import (
"context"
"flag"
"os"
"github.com/google/subcommands"
)
func main() {
subcommands.Register(subcommands.HelpCommand(), "")
subcommands.Register(subcommands.CommandsCommand(), "")
subcommands.Register(subcommands.FlagsCommand(), "")
subcommands.Register(&ListCommand{}, "")
subcommands.Register(&CopyCommand{}, "")
flag.Parse()
os.Exit(int(subcommands.Execute(context.Background())))
}