pull: move to pmb/commands/pull.py (MR 2252)

Fixes:
  TypeError: pull() takes 0 positional arguments but 1 was given
This commit is contained in:
Oliver Smith 2024-06-20 20:38:10 +02:00
parent e2461f00a2
commit 9e2bbf80e0
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 41 additions and 27 deletions

View file

@ -14,6 +14,7 @@ from .index import Index
from .repo_bootstrap import RepoBootstrap
from .shutdown import Shutdown
from .test import Test
from .pull import Pull
"""New way to model pmbootstrap subcommands that can be invoked without PmbArgs."""
@ -49,7 +50,6 @@ unmigrated_commands = [
"apkindex_parse",
"config",
"bootimg_analyze",
"pull",
]
def run_command(args: PmbArgs):
@ -71,6 +71,8 @@ def run_command(args: PmbArgs):
command = Shutdown()
elif args.action == "test":
command = Test(args.action_test)
elif args.action == "pull":
command = Pull()
else:
raise NotImplementedError(f"Command '{args.action}' is not implemented.")