navy/meta/plugins/cli.py

23 lines
441 B
Python
Raw Normal View History

2023-12-10 18:24:05 +00:00
from cutekit import cli, model
from . import build
from . import image
from . import qemu
2023-12-15 21:31:52 +00:00
@cli.command("n", "navy", "Navy related commands")
2023-12-10 18:24:05 +00:00
def _(args: cli.Args):
pass
2023-12-15 21:31:52 +00:00
@cli.command("b", "navy/boot", "Boot Navy")
2023-12-10 18:24:05 +00:00
def _(args: cli.Args):
qemu.Qemu(
image.Image(
build.Builder(args)
)
).run()
2023-12-15 21:31:52 +00:00
@cli.command("B", "navy/build", "Build Navy")
2023-12-10 18:24:05 +00:00
def _(args: cli.Args):
build.Builder(args).build_core()