fix: remove legacy command definitions
This commit is contained in:
parent
ac851963c6
commit
58188601bc
|
@ -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"
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue