fix: remove legacy command definitions

This commit is contained in:
Lance Edgar 2024-07-01 12:24:21 -05:00
parent d503de44a2
commit adbf48ba57
2 changed files with 1 additions and 14 deletions

View file

@ -27,10 +27,6 @@ dependencies = [
]
[project.entry-points."rattail.subcommands"]
import-nationbuilder = "rattail_nationbuilder.commands:ImportNationBuilder"
[project.entry-points."rattail.typer_imports"]
rattail_nationbuilder = "rattail_nationbuilder.commands"

View file

@ -26,7 +26,7 @@ rattail-nationbuilder commands
import typer
from rattail.commands import rattail_typer, ImportSubcommand
from rattail.commands import rattail_typer
from rattail.commands.typer import importer_command, typer_get_runas_user
from rattail.commands.importing import ImportCommandHandler
@ -46,12 +46,3 @@ def import_nationbuilder(
config, import_handler_key='to_rattail.from_nationbuilder.import')
kwargs['user'] = typer_get_runas_user(ctx)
handler.run(kwargs, progress=progress)
class ImportNationBuilder(ImportSubcommand):
"""
Import data for NationBuilder => Rattail
"""
name = 'import-nationbuilder'
description = __doc__.strip()
handler_key = 'to_rattail.from_nationbuilder.import'