2026-03-03 07:15:48 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
from argparse import Namespace, ArgumentParser
|
|
|
|
|
|
|
|
|
|
from .Cmd import Cmd
|
|
|
|
|
from ..CmdDistro import CmdDistro
|
|
|
|
|
|
|
|
|
|
class CmdRebootRequired(Cmd): # export
|
|
|
|
|
|
|
|
|
|
def __init__(self, parent: CmdDistro) -> None:
|
|
|
|
|
super().__init__(parent, 'reboot-required', help="Check whether the machine needs rebooting")
|
|
|
|
|
|
|
|
|
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
|
|
|
|
super().add_arguments(parser)
|
|
|
|
|
|
|
|
|
|
async def _run(self, args: Namespace) -> None:
|
2026-03-06 16:50:27 +01:00
|
|
|
return await self.distro.reboot_required()
|