fix: remove legacy command definitions

This commit is contained in:
Lance Edgar 2024-07-01 12:16:35 -05:00
parent ac851963c6
commit 58188601bc
2 changed files with 1 additions and 24 deletions

View file

@ -30,11 +30,6 @@ dependencies = [
]
[project.entry-points."rattail.subcommands"]
export-woocommerce = "rattail_woocommerce.commands:ExportWooCommerce"
import-woocommerce = "rattail_woocommerce.commands:ImportWooCommerce"
[project.entry-points."rattail.typer_imports"]
rattail_woocommerce = "rattail_woocommerce.commands"

View file

@ -26,7 +26,7 @@ Rattail/WooCommerce 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
@ -65,21 +65,3 @@ def import_woocommerce(
import_handler_spec='rattail_woocommerce.importing.woocommerce:FromWooCommerceToRattail')
kwargs['user'] = typer_get_runas_user(ctx)
handler.run(kwargs, progress=progress)
class ExportWooCommerce(ImportSubcommand):
"""
Export data to WooCommerce
"""
name = 'export-woocommerce'
description = __doc__.strip()
handler_spec = 'rattail_woocommerce.woocommerce.importing.rattail:FromRattailToWooCommerce'
class ImportWooCommerce(ImportSubcommand):
"""
Import data from WooCommerce
"""
name = 'import-woocommerce'
description = __doc__.strip()
handler_spec = 'rattail_woocommerce.importing.woocommerce:FromWooCommerceToRattail'