
Add the ability to export and import ostree branches into an ostree repository. The way that this works is that apt-ostree uses "the ostree pull-local" command to import or export an ostree branch into a repository. This allows the user to easily import a branch from an extermal source, like an ISO. The methods that are called "backup" and "restore" so the CLI library wont get traceback when trying to run them. Story: 2010867 Task: 48556 Change-Id: Ic1791089118a64ab491673abcaec1559c725eaa9 Signed-off-by: Charles Short <charles.short@windriver.com>
38 lines
988 B
Python
38 lines
988 B
Python
"""
|
|
Copyright (c) 2023 Wind River Systems, Inc.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""
|
|
|
|
import click
|
|
|
|
from apt_ostree.cmd.compose.backup import backup
|
|
from apt_ostree.cmd.compose.commit import commit
|
|
from apt_ostree.cmd.compose.create import create
|
|
from apt_ostree.cmd.compose.image import image
|
|
from apt_ostree.cmd.compose.init import init
|
|
from apt_ostree.cmd.compose.install import install
|
|
from apt_ostree.cmd.compose.repo import repo
|
|
from apt_ostree.cmd.compose.restore import restore
|
|
from apt_ostree.cmd.compose.uninstall import uninstall
|
|
from apt_ostree.cmd.compose.upgrade import upgrade
|
|
|
|
|
|
@click.group(help="Commands to build ostree repo/image.")
|
|
@click.pass_context
|
|
def compose(ctxt):
|
|
pass
|
|
|
|
|
|
compose.add_command(backup)
|
|
compose.add_command(commit)
|
|
compose.add_command(create)
|
|
compose.add_command(image)
|
|
compose.add_command(init)
|
|
compose.add_command(install)
|
|
compose.add_command(upgrade)
|
|
compose.add_command(repo)
|
|
compose.add_command(restore)
|
|
compose.add_command(uninstall)
|