| // 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 $JIRI_ROOT/release/go/src/v.io/x/lib/cmdline/testdata/gendoc.go . |
| // TODO(caprita): Remove this once we have a way to set the GOMAXPROCS |
| // environment variable persistently for device manager. |
| if os.Getenv("GOMAXPROCS") == "" { |
| runtime.GOMAXPROCS(runtime.NumCPU()) |
| rootCmd := &cmdline.Command{ |
| Short: "launch, configure and manage the deviced daemon", |
| Command deviced is used to launch, configure and manage the deviced daemon, |
| which implements the v.io/v23/services/device interfaces. |
| Children: []*cmdline.Command{cmdInstall, cmdUninstall, cmdStart, cmdStop, cmdProfile}, |
| Runner: v23cmd.RunnerFunc(runServer), |