cmds.distro.CmdXxx: Rename to cmds.pkg.CmdXxx
With the exception of the "info" subcommand, nearly all of distro's subcommands deal with package managing, so push them into their own command category. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c19111e5b6
commit
5830984bfc
17 changed files with 65 additions and 41 deletions
15
src/python/jw/pkg/cmds/CmdPkg.py
Normal file
15
src/python/jw/pkg/cmds/CmdPkg.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from argparse import ArgumentParser
|
||||
|
||||
from ..App import App
|
||||
from .Cmd import Cmd as CmdBase
|
||||
|
||||
class CmdPkg(CmdBase): # export
|
||||
|
||||
def __init__(self, parent: App) -> None:
|
||||
super().__init__(parent, 'pkg', help="System package manager wrapper")
|
||||
self._add_subcommands()
|
||||
|
||||
def add_arguments(self, p: ArgumentParser) -> None:
|
||||
super().add_arguments(p)
|
||||
Loading…
Reference in a new issue