jw-pkg/src/python/jw/pkg/cmds/distro/Cmd.py

28 lines
574 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from __future__ import annotations
from typing import TYPE_CHECKING
import os, importlib
from ...lib.log import *
if TYPE_CHECKING:
from ...lib.Distro import Distro
from ..Cmd import Cmd as Base
from ..CmdDistro import CmdDistro
class Cmd(Base): # export
def __init__(self, parent: CmdDistro, name: str, help: str) -> None:
super().__init__(parent, name, help)
@property
def distro(self) -> Distro:
return self.parent.distro
@property
def distro_id(self) -> str:
return self.parent.distro_id