fix: remove legacy command definitions
This commit is contained in:
		
							parent
							
								
									d503de44a2
								
							
						
					
					
						commit
						adbf48ba57
					
				
					 2 changed files with 1 additions and 14 deletions
				
			
		| 
						 | 
					@ -27,10 +27,6 @@ dependencies = [
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[project.entry-points."rattail.subcommands"]
 | 
					 | 
				
			||||||
import-nationbuilder = "rattail_nationbuilder.commands:ImportNationBuilder"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[project.entry-points."rattail.typer_imports"]
 | 
					[project.entry-points."rattail.typer_imports"]
 | 
				
			||||||
rattail_nationbuilder = "rattail_nationbuilder.commands"
 | 
					rattail_nationbuilder = "rattail_nationbuilder.commands"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,7 +26,7 @@ rattail-nationbuilder 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_nationbuilder(
 | 
				
			||||||
        config, import_handler_key='to_rattail.from_nationbuilder.import')
 | 
					        config, import_handler_key='to_rattail.from_nationbuilder.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 ImportNationBuilder(ImportSubcommand):
 | 
					 | 
				
			||||||
    """
 | 
					 | 
				
			||||||
    Import data for NationBuilder => Rattail
 | 
					 | 
				
			||||||
    """
 | 
					 | 
				
			||||||
    name = 'import-nationbuilder'
 | 
					 | 
				
			||||||
    description = __doc__.strip()
 | 
					 | 
				
			||||||
    handler_key = 'to_rattail.from_nationbuilder.import'
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue