fix: remove legacy command definitions
This commit is contained in:
parent
d419bc1854
commit
ff202415e3
|
@ -35,10 +35,6 @@ Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-harve
|
|||
Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-harvest/files/master/CHANGELOG.md"
|
||||
|
||||
|
||||
[project.entry-points."rattail.subcommands"]
|
||||
import-harvest = "rattail_harvest.commands:ImportHarvest"
|
||||
|
||||
|
||||
[project.entry-points."rattail.typer_imports"]
|
||||
rattail_harvest = "rattail_harvest.commands"
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ rattail-harvest 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_harvest(
|
|||
config, import_handler_key='to_rattail.from_harvest.import')
|
||||
kwargs['user'] = typer_get_runas_user(ctx)
|
||||
handler.run(kwargs, progress=progress)
|
||||
|
||||
|
||||
class ImportHarvest(ImportSubcommand):
|
||||
"""
|
||||
Import data to Rattail, from Harvest API
|
||||
"""
|
||||
name = 'import-harvest'
|
||||
description = __doc__.strip()
|
||||
handler_key = 'to_rattail.from_harvest.import'
|
||||
|
|
Loading…
Reference in a new issue