go.fuchsia.dev/infra@v0.0.0-20240507153436-9b593402251b/cmd/submodule_update/main.go (about) 1 // Copyright 2023 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 // // The submodule_update tool is a CLI that will handle making updates to package and submodules. 6 package main 7 8 import ( 9 "context" 10 "flag" 11 "log" 12 "os" 13 14 "github.com/google/subcommands" 15 ) 16 17 func main() { 18 if err := flag.Set("alsologtostderr", "true"); err != nil { 19 log.Fatal(err) 20 } 21 22 subcommands.Register(subcommands.CommandsCommand(), "") 23 subcommands.Register(subcommands.HelpCommand(), "") 24 subcommands.Register(subcommands.FlagsCommand(), "") 25 subcommands.Register(&integrationUpdateCmd{}, "") 26 27 flag.Parse() 28 os.Exit(int(subcommands.Execute(context.Background()))) 29 }