fix: remove legacy command definitions

This commit is contained in:
Lance Edgar 2024-07-01 11:45:41 -05:00
parent 1c14ad72cd
commit ab12cba1d5
2 changed files with 0 additions and 36 deletions

View file

@ -46,10 +46,6 @@ main = "rattail_tutorial.web.app:main"
rattail_tutorial = "rattail_tutorial.config:Rattail_tutorialConfig"
[project.entry-points."rattail_tutorial.subcommands"]
hello = "rattail_tutorial.commands:HelloWorld"
[project.urls]
Homepage = "https://rattailproject.org"
repository = "https://kallithea.rattailproject.org/rattail-project/rattail-tutorial"

View file

@ -28,9 +28,7 @@ import sys
import typer
from rattail import commands
from rattail.commands.typer import make_typer
from rattail_tutorial import __version__
rattail_tutorial_typer = make_typer(
@ -47,33 +45,3 @@ def hello(
The requisite 'hello world' example
"""
sys.stdout.write("hello world!\n")
def main(*args):
"""
Main entry point for Rattail Tutorial command system
"""
args = list(args or sys.argv[1:])
cmd = Command()
cmd.run(*args)
class Command(commands.Command):
"""
Main command for Rattail Tutorial
"""
name = 'rattail_tutorial'
version = __version__
description = "Rattail Tutorial (custom Rattail system)"
long_description = ''
class HelloWorld(commands.Subcommand):
"""
The requisite 'hello world' example
"""
name = 'hello'
description = __doc__.strip()
def run(self, args):
self.stdout.write("hello world!\n")