fix: remove legacy command definitions

This commit is contained in:
Lance Edgar 2024-07-01 12:17:50 -05:00
parent c82128cb60
commit c923f71eb2
2 changed files with 1 additions and 14 deletions

View file

@ -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"

View file

@ -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'