blob: 72525e334d752cb5c72556058938cae0109d24cd [file] [log] [blame]
// Copyright 2018 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.
package main
// Uses mDNS for Fuchsia device discovery.
import (
"context"
"flag"
"os"
"github.com/google/subcommands"
)
func main() {
subcommands.Register(subcommands.HelpCommand(), "")
subcommands.Register(subcommands.CommandsCommand(), "")
subcommands.Register(subcommands.FlagsCommand(), "")
subcommands.Register(&listCmd{}, "")
subcommands.Register(&resolveCmd{}, "")
flag.Parse()
os.Exit(int(subcommands.Execute(context.Background())))
}