muldap/cmd/user/user.go

32 lines
682 B
Go
Raw Normal View History

2018-07-20 14:21:51 -04:00
package user
import (
"fmt"
"github.com/spf13/cobra"
)
var (
// user subcommand arguments
flagUserUsername string
flagUserEmail string
flagUserFirstName string
flagUserLastName string
flagUserIdNumber int
)
func init() {
// register add command and subcommands
2018-07-21 11:01:20 -04:00
UserCmd.AddCommand(userAddCmd, userDeleteCmd, userEditCmd, userPwCmd)
2018-07-20 14:21:51 -04:00
}
// define user command
var UserCmd = &cobra.Command{
Use: "user",
Short: "Manage LDAP user resources",
Long: `Perform various LDAP operations on user resources.`,
Run: func(cmd *cobra.Command, args []string) {
2018-07-21 11:01:20 -04:00
fmt.Println("Metaunix.net LDAP tool, user command. Available subcommands are: add, delete, edit, pw")
2018-07-20 14:21:51 -04:00
},
}