cmds.distro.CmdInfo: Rename to cmds.platform.CmdInfo
Rename command "distro" to "pkg" together with "info", its last remaining subcommand. "distro" is often used in the sense of "Linux distribution", which would be too narrow for the targets jw-pkg could theoretically support.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5830984bfc
commit
514d66dac1
10 changed files with 20 additions and 20 deletions
|
|
@ -5,10 +5,10 @@ from argparse import ArgumentParser
|
|||
from ..App import App
|
||||
from .Cmd import Cmd as CmdBase
|
||||
|
||||
class CmdDistro(CmdBase): # export
|
||||
class CmdPlatform(CmdBase): # export
|
||||
|
||||
def __init__(self, parent: App) -> None:
|
||||
super().__init__(parent, 'distro', help="Miscellaneous platform-related comamnds")
|
||||
super().__init__(parent, 'platform', help="Miscellaneous platform-related comamnds")
|
||||
self._add_subcommands()
|
||||
|
||||
def add_arguments(self, p: ArgumentParser) -> None:
|
||||
|
|
@ -6,11 +6,11 @@ from typing import TYPE_CHECKING
|
|||
|
||||
if TYPE_CHECKING:
|
||||
from ...lib.Distro import Distro
|
||||
from ..CmdDistro import CmdDistro
|
||||
from ..CmdPlatform import CmdPlatform
|
||||
|
||||
from ..Cmd import Cmd as Base
|
||||
|
||||
class Cmd(Base): # export
|
||||
|
||||
def __init__(self, parent: CmdDistro, name: str, help: str) -> None:
|
||||
def __init__(self, parent: CmdPlatform, name: str, help: str) -> None:
|
||||
super().__init__(parent, name, help)
|
||||
|
|
@ -5,11 +5,11 @@ from argparse import Namespace, ArgumentParser
|
|||
from ...lib.log import *
|
||||
from ...lib.Distro import Distro
|
||||
from ..Cmd import Cmd
|
||||
from ..CmdProjects import CmdProjects
|
||||
from ..CmdPlatform import CmdPlatform
|
||||
|
||||
class CmdInfo(Cmd): # export
|
||||
|
||||
def __init__(self, parent: CmdProjects) -> None:
|
||||
def __init__(self, parent: CmdPlatform) -> None:
|
||||
super().__init__(parent, 'info', help='Retrieve information about target platform')
|
||||
|
||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||
Loading…
Add table
Add a link
Reference in a new issue