Move most of CmdDistro into the new class DistroBase, meant to serve as base class for distro-aware commands other than "distro".
Signed-off-by: Jan Lindemann <jan@janware.com>
14 lines
384 B
Python
14 lines
384 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from argparse import ArgumentParser
|
|
|
|
from ..App import App
|
|
from .DistroBase import DistroBase as CmdBase
|
|
|
|
class CmdDistro(CmdBase): # export
|
|
|
|
def __init__(self, parent: App) -> None:
|
|
super().__init__(parent, 'distro', help="System package manager wrapper")
|
|
|
|
def add_arguments(self, p: ArgumentParser) -> None:
|
|
super().add_arguments(p)
|