2018-08-27 16:29:36 -04:00
|
|
|
package ldif
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// ldif subcommand arguments
|
|
|
|
flagLdifFilePath string
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2018-08-27 16:43:45 -04:00
|
|
|
// register LDIF command and its subcommands
|
|
|
|
LdifCmd.AddCommand(ldifAddCmd, ldifDeleteCmd)
|
2018-08-27 16:29:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// define ldif subcommand
|
|
|
|
var LdifCmd = &cobra.Command{
|
|
|
|
Use: "ldif",
|
|
|
|
Short: "Import an LDIF file",
|
2018-08-27 16:43:45 -04:00
|
|
|
Long: `Manage LDAP resources using an LDIF file.`,
|
2018-08-27 16:29:36 -04:00
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
2018-08-27 16:43:45 -04:00
|
|
|
fmt.Println("Available LDIF subcommands are: add, delete")
|
2018-08-27 16:29:36 -04:00
|
|
|
},
|
|
|
|
}
|