github.com/rogpeppe/juju@v0.0.0-20140613142852-6337964b789e/cmd/juju/user.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package main 5 6 import ( 7 "github.com/juju/cmd" 8 9 "github.com/juju/juju/cmd/envcmd" 10 ) 11 12 type UserCommand struct { 13 *cmd.SuperCommand 14 } 15 16 const userCommandDoc = ` 17 "juju user" is used to manage the user accounts and access control in 18 the Juju environment. 19 ` 20 21 const userCommandPurpose = "manage user accounts and access control" 22 23 func NewUserCommand() cmd.Command { 24 usercmd := &UserCommand{ 25 SuperCommand: cmd.NewSuperCommand(cmd.SuperCommandParams{ 26 Name: "user", 27 Doc: userCommandDoc, 28 UsagePrefix: "juju", 29 Purpose: userCommandPurpose, 30 }), 31 } 32 // Define each subcommand in a separate "user_FOO.go" source file 33 // (with tests in user_FOO_test.go) and wire in here. 34 usercmd.Register(envcmd.Wrap(&UserAddCommand{})) 35 return usercmd 36 }