Skip to content

Commit

Permalink
cli.apikey: remove parse_args
Browse files Browse the repository at this point in the history
For now. It's not ready/tested.
  • Loading branch information
enku committed Feb 22, 2024
1 parent 2858210 commit 1e5f7bf
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/gentoo_build_publisher/cli/apikey.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ def handler(args: argparse.Namespace, _gbp: GBP, console: Console) -> int:
return 0


def parse_args(parser: argparse.ArgumentParser) -> None:
"""Set up parser arguments"""
subparsers = parser.add_subparsers(dest="action", required=True)
subparser = subparsers.add_parser(
"create", description="Create an API key with the given name"
)
subparser.add_argument("name", type=str, help="Unique name for the key")


def create_action(args: argparse.Namespace, console: Console) -> int:
"""handle the "create" action"""
key = create_api_key()
Expand Down

0 comments on commit 1e5f7bf

Please sign in to comment.