//NewImportAclsCommand creates `import acls` command
NewImportAclsCommand creates `import acls` command
// NewImportAclsCommand creates ` import acls ` command
func NewImportAclsCommand() *cobra.Command {
	var path string
	cmd := &cobra.Command{
		Use:              "acls",
		Short:            "acls",
		Example:          `import acls --landscape /my-landscape --ignore-errors`,
		SilenceErrors:    true,
		TraverseChildren: true,
		RunE: func(cmd *cobra.Command, args []string) error {
			path = fmt.Sprintf("%s/%s", path, pkg.AclsPath)
			if err := loadAcls(config.Client, cmd, path); err != nil {
				golog.Errorf("Failed to load acls. [%s]", err.Error())
				return err
			}
			return nil
		},
	}
	cmd.Flags().StringVar(&path, "dir", ".", "Base directory to import")
	bite.CanPrintJSON(cmd)
	bite.CanBeSilent(cmd)
	cmd.Flags().Set("silent", "true")
	return cmd
}
func NewImportAclsCommand ( ) * cobra . Command { var path string cmd := & cobra . Command { Use : " " , Short : " " , Example : `import acls --landscape /my-landscape --ignore-errors` , SilenceErrors : true , TraverseChildren : true , RunE : func ( cmd * cobra . Command , args [ ] string ) error { path = fmt . Sprintf ( " " , path , pkg . AclsPath ) if err := loadAcls ( config . Client , cmd , path ) ; err != nil { golog . Errorf ( " " , err . Error ( ) ) return err } return nil } , } cmd . Flags ( ) . StringVar ( & path , " " , " " , " " ) bite . CanPrintJSON ( cmd ) bite . CanBeSilent ( cmd ) cmd . Flags ( ) . Set ( " " , " " ) return cmd }
NewImportAclsCommand creates `import acls` command
NewImportAclsCommand creates ` import acls ` command