refactor to hatch
This commit is contained in:
parent
37583a4c5f
commit
00a57bc786
33 changed files with 312 additions and 18 deletions
19
creeper_adventure/cli/__init__.py
Normal file
19
creeper_adventure/cli/__init__.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# SPDX-FileCopyrightText: 2023-present Waylon S. Walker <waylon@waylonwalker.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
import click
|
||||
|
||||
from ..__about__ import __version__
|
||||
from ..creeper import main
|
||||
|
||||
|
||||
@click.group(
|
||||
context_settings={"help_option_names": ["-h", "--help"]},
|
||||
invoke_without_command=True,
|
||||
)
|
||||
@click.version_option(version=__version__, prog_name="creeper-adventure")
|
||||
@click.pass_context
|
||||
@click.option("--debug", is_flag=True, help="start with the debug menu open")
|
||||
def creeper_adventure(ctx: click.Context, debug):
|
||||
print(debug)
|
||||
main(debug)
|
||||
Loading…
Add table
Add a link
Reference in a new issue