commands: move index command to pmb/commands (MR 2252)

Use the new command runner for pmbootstrap index.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-08 00:04:23 +02:00 committed by Oliver Smith
parent d4070c0e9e
commit 852ace63c4
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 21 additions and 9 deletions

14
pmb/commands/index.py Normal file
View file

@ -0,0 +1,14 @@
# Copyright 2024 Caleb Connolly
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
from pmb import commands
import pmb.build.other
class Index(commands.Command):
def __init__(self):
pass
def run(self):
pmb.build.other.index_repo()