blob: 6f977e62564b036ad02ac266833a7da2caa6cffa [file] [log] [blame]
// Copyright 2020 The Chromium OS 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
import (
func main() {
application := &cli.Application{
Name: "tnull",
Title: "A minimal Remote Test Driver for testing API and faking out aspects of the RTD for meta-testing purposes.",
Context: func(ctx context.Context) context.Context {
return gologger.StdConfig.Use(ctx)
Commands: []*subcommands.Command{
authcli.SubcommandInfo(chromeinfra.DefaultAuthOptions(), "whoami", false),
authcli.SubcommandLogin(chromeinfra.DefaultAuthOptions(), "login", false),
authcli.SubcommandLogout(chromeinfra.DefaultAuthOptions(), "logout", false),
os.Exit(subcommands.Run(application, nil))