adjustments to pypi

This commit is contained in:
mrT23
2024-03-23 16:16:32 +02:00
parent 8e39394bcf
commit ee4798acca
4 changed files with 10 additions and 14 deletions

View File

@ -50,6 +50,13 @@ def set_parser():
parser.add_argument('rest', nargs=argparse.REMAINDER, default=[])
return parser
def run_command(pr_url, command):
# Preparing the command
run_command = f"--pr_url={pr_url} {command.lstrip('/')}"
args = set_parser().parse_args(run_command.split())
# Run the command. Feedback will appear in GitHub PR comments
run(args=args)
def run(inargs=None, args=None):
parser = set_parser()