refactor to hatch

This commit is contained in:
Waylon Walker 2023-01-03 20:33:45 -06:00
parent 37583a4c5f
commit 00a57bc786
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
33 changed files with 312 additions and 18 deletions

View 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)