fix: remove legacy command definitions
This commit is contained in:
parent
c82128cb60
commit
c923f71eb2
|
@ -29,10 +29,6 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
[project.entry-points."rattail.subcommands"]
|
|
||||||
import-wave = "rattail_wave.commands:ImportWave"
|
|
||||||
|
|
||||||
|
|
||||||
[project.entry-points."rattail.typer_imports"]
|
[project.entry-points."rattail.typer_imports"]
|
||||||
rattail_wave = "rattail_wave.commands"
|
rattail_wave = "rattail_wave.commands"
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ rattail-wave commands
|
||||||
|
|
||||||
import typer
|
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.typer import importer_command, typer_get_runas_user
|
||||||
from rattail.commands.importing import ImportCommandHandler
|
from rattail.commands.importing import ImportCommandHandler
|
||||||
|
|
||||||
|
@ -46,12 +46,3 @@ def import_wave(
|
||||||
config, import_handler_key='to_rattail.from_wave.import')
|
config, import_handler_key='to_rattail.from_wave.import')
|
||||||
kwargs['user'] = typer_get_runas_user(ctx)
|
kwargs['user'] = typer_get_runas_user(ctx)
|
||||||
handler.run(kwargs, progress=progress)
|
handler.run(kwargs, progress=progress)
|
||||||
|
|
||||||
|
|
||||||
class ImportWave(ImportSubcommand):
|
|
||||||
"""
|
|
||||||
Import data to Rattail, from Wave API
|
|
||||||
"""
|
|
||||||
name = 'import-wave'
|
|
||||||
description = __doc__.strip()
|
|
||||||
handler_key = 'to_rattail.from_wave.import'
|
|
||||||
|
|
Loading…
Reference in a new issue