navy/meta/plugins/cli.py

23 lines
453 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
@cli.command("k", "kernel", "kernel related commands")
def _(args: cli.Args):
pass
@cli.command("b", "kernel/boot", "Boot kernel")
def _(args: cli.Args):
qemu.Qemu(
image.Image(
build.Builder(args)
)
).run()
@cli.command("B", "kernel/build", "Build kernel")
def _(args: cli.Args):
build.Builder(args).build_core()