go.fuchsia.dev/infra@v0.0.0-20240507153436-9b593402251b/cmd/catapult/main.go (about) 1 // Copyright 2017 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package main 6 7 import ( 8 "context" 9 "flag" 10 "os" 11 12 "github.com/google/subcommands" 13 "go.chromium.org/luci/common/logging/gologger" 14 ) 15 16 func main() { 17 subcommands.Register(&UploadCommand{}, "") 18 flag.Parse() 19 20 ctx := gologger.StdConfig.Use(context.Background()) 21 os.Exit(int(subcommands.Execute(ctx))) 22 }