forgejo-init-script/forgejo/__main__.py
Aravinth Manivannan 40899951ad
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: use logging library to log
2023-10-05 00:22:07 +05:30

18 lines
330 B
Python

# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
import argparse
from .logger import logger
from .cli import Cli
def admin(args):
logger.info(args)
if __name__ == "__main__":
cli = Cli()
opts = cli.parse()
opts.func(opts, c=cli.c)