blob: b523dbc727890da3d32d27ae75fe6b8106677f83 [file] [log] [blame]
// Copyright 2015 The Vanadium 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 following enables go generate to generate the doc.go file.
//go:generate go run $V23_ROOT/release/go/src/v.io/x/lib/cmdline/testdata/gendoc.go .
package main
import (
"os"
"regexp"
"v.io/v23"
"v.io/x/lib/cmdline"
_ "v.io/x/ref/profiles/static"
)
func main() {
cmdline.HideGlobalFlagsExcept(regexp.MustCompile(`^(v23\.namespace\.root)|(v23\.proxy)$`))
gctx, shutdown := v23.Init()
SetGlobalContext(gctx)
exitCode := Root().Main()
shutdown()
os.Exit(exitCode)
}