blob: cab26053927d4b0b019d03a005f41dcd32e2682a [file] [log] [blame]
Todd Wang0d12d712014-10-06 17:25:41 -07001// The following enables go generate to generate the doc.go file.
Jiri Simsa764efb72014-12-25 20:57:03 -08002//go:generate go run $VANADIUM_ROOT/release/go/src/v.io/lib/cmdline/testdata/gendoc.go .
Todd Wang0d12d712014-10-06 17:25:41 -07003
Robin Thellend663bf482014-10-01 10:27:10 -07004package main
5
6import (
Matt Rosencrantz92303e12015-01-21 09:02:42 -08007 "os"
8
Jiri Simsa764efb72014-12-25 20:57:03 -08009 "v.io/core/veyron2"
10 "v.io/core/veyron2/rt"
Cosmos Nicolaouf889c732014-10-16 20:46:54 -070011
Jiri Simsa764efb72014-12-25 20:57:03 -080012 _ "v.io/core/veyron/profiles"
Robin Thellend663bf482014-10-01 10:27:10 -070013)
14
Matt Rosencrantz03f4b1d2014-11-24 11:01:17 -080015var runtime veyron2.Runtime
16
Robin Thellend663bf482014-10-01 10:27:10 -070017func main() {
Matt Rosencrantz03f4b1d2014-11-24 11:01:17 -080018 var err error
19 runtime, err = rt.New()
20 if err != nil {
21 panic(err)
22 }
Matt Rosencrantz92303e12015-01-21 09:02:42 -080023
24 exitCode := root().Main()
25 runtime.Cleanup()
26 os.Exit(exitCode)
Robin Thellend663bf482014-10-01 10:27:10 -070027}