blob: 1d858261b3049393e2c7ffa45b62f111280a7a06 [file] [log] [blame]
// Copyright 2023 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.
//
// // The submodule_update tool is a CLI that will handle making updates to package and submodules.
package main
import (
"context"
"flag"
"log"
"os"
"github.com/google/subcommands"
)
var (
superprojectRoot *string
resultPath *string
)
func main() {
if err := flag.Set("alsologtostderr", "true"); err != nil {
log.Fatal(err)
}
subcommands.Register(subcommands.CommandsCommand(), "")
subcommands.Register(subcommands.HelpCommand(), "")
subcommands.Register(subcommands.FlagsCommand(), "")
subcommands.Register(&integrationUpdateCmd{}, "")
subcommands.Register(&submoduleUpdateCmd{}, "")
os.Exit(int(subcommands.Execute(context.Background())))
}