cmds.pkg.CmdLs: Fix: Derive from NamedPkgsCmd
Fix regression in
5d1ba6e15a: CmdLs should be derived from NamedPkgsCmd instead of .Cmd.Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
f0727b8e1b
commit
1b814e1718
1 changed files with 4 additions and 2 deletions
|
|
@ -2,12 +2,14 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
from .Cmd import Cmd, Parent
|
from .NamedPkgsCmd import NamedPkgsCmd
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from argparse import ArgumentParser, Namespace
|
from argparse import ArgumentParser, Namespace
|
||||||
|
|
||||||
class CmdLs(Cmd): # export
|
from .Cmd import Parent
|
||||||
|
|
||||||
|
class CmdLs(NamedPkgsCmd): # export
|
||||||
|
|
||||||
def __init__(self, parent: Parent) -> None:
|
def __init__(self, parent: Parent) -> None:
|
||||||
super().__init__(parent, 'ls', help = 'List package contents')
|
super().__init__(parent, 'ls', help = 'List package contents')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue