v.io/jiri@v0.0.0-20160715023856-abfb8b131290/profiles/profilescmdline/internal/i1/i1.go (about) 1 // Copyright 2015 The Vanadium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // The following enables go generate to generate the doc.go file. 6 //go:generate go run $JIRI_ROOT/release/go/src/v.io/x/lib/cmdline/testdata/gendoc.go -env=CMDLINE_PREFIX=jiri . 7 8 package main 9 10 import ( 11 "v.io/jiri" 12 "v.io/jiri/profiles/profilescmdline" 13 "v.io/jiri/profiles/profilesmanager" 14 "v.io/jiri/tool" 15 "v.io/x/lib/cmdline" 16 17 // Add profile manager implementations here. 18 "v.io/jiri/profiles/profilescmdline/internal/example" 19 ) 20 21 // commandLineDriver implements the command line for the 'profile-v23' 22 // subcommand. 23 var commandLineDriver = &cmdline.Command{ 24 Name: "profile-i1", 25 Short: "Manage i1 profiles", 26 Long: profilescmdline.HelpMsg(), 27 } 28 29 func main() { 30 profilesmanager.Register(example.New("i1", "eg")) 31 profilescmdline.RegisterManagementCommands(commandLineDriver, true, "i1", jiri.ProfilesDBDir, jiri.ProfilesRootDir) 32 tool.InitializeRunFlags(&commandLineDriver.Flags) 33 cmdline.Main(commandLineDriver) 34 }