diff --git a/src/python/jw/pkg/cmds/CmdPosix.py b/src/python/jw/pkg/cmds/CmdPosix.py new file mode 100644 index 00000000..d183cc8c --- /dev/null +++ b/src/python/jw/pkg/cmds/CmdPosix.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +from argparse import ArgumentParser + +from ..App import App +from .Cmd import Cmd as CmdBase + +class CmdPosix(CmdBase): # export + + def __init__(self, parent: App) -> None: + super().__init__(parent, 'posix', help='Perform various operations on a distro through its POSIX utility interface') + self._add_subcommands() + + def add_arguments(self, p: ArgumentParser) -> None: + super().add_arguments(p) diff --git a/src/python/jw/pkg/cmds/posix/Cmd.py b/src/python/jw/pkg/cmds/posix/Cmd.py new file mode 100644 index 00000000..9939a072 --- /dev/null +++ b/src/python/jw/pkg/cmds/posix/Cmd.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- + +from __future__ import annotations + +from typing import TYPE_CHECKING + +from ..Cmd import Cmd as Base + +if TYPE_CHECKING: + from ..CmdPosix import CmdPosix + +class Cmd(Base): # export + + def __init__(self, parent: CmdPosix, name: str, help: str) -> None: + super().__init__(parent, name, help) + + def add_arguments(self, parser: ArgumentParser) -> None: + super().add_arguments(parser) diff --git a/src/python/jw/pkg/cmds/posix/Makefile b/src/python/jw/pkg/cmds/posix/Makefile new file mode 100644 index 00000000..7a83c333 --- /dev/null +++ b/src/python/jw/pkg/cmds/posix/Makefile @@ -0,0 +1,4 @@ +TOPDIR = ../../../../../.. + +include $(TOPDIR)/make/proj.mk +include $(JWBDIR)/make/py-mod.mk