def run(self, *args):
        """List, add or delete organizations and domains from the registry.

        By default, it prints the list of organizations available on
        the registry.
        """
        params = self.parser.parse_args(args)

        organization = params.organization
        domain = params.domain
        is_top_domain = params.top_domain
        overwrite = params.overwrite

        if params.add:
            code = self.add(organization, domain, is_top_domain, overwrite)
        elif params.delete:
            code = self.delete(organization, domain)
        else:
            term = organization
            code = self.registry(term)

        return code
def run ( self , * args ) : params = self . parser . parse_args ( args ) organization = params . organization domain = params . domain is_top_domain = params . top_domain overwrite = params . overwrite if params . add : code = self . add ( organization , domain , is_top_domain , overwrite ) elif params . delete : code = self . delete ( organization , domain ) else : term = organization code = self . registry ( term ) return code
List, add or delete organizations and domains from the registry.

        By default, it prints the list of organizations available on
        the registry.