mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
The body of Cmd is pretty much entirely obviated by its base class. Signed-off-by: Jan Lindemann <jan@janware.com>
17 lines
413 B
Python
17 lines
413 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import annotations
|
|
from typing import Type, Union, TypeVar
|
|
import inspect, abc, argparse
|
|
from argparse import ArgumentParser
|
|
|
|
from ..lib.Cmd import Cmd as Base
|
|
|
|
class Cmd(Base): # export
|
|
|
|
def __init__(self, name: str, help: str) -> None:
|
|
super().__init__(name, help)
|
|
from ..App import App
|
|
|
|
async def run(self, args):
|
|
return self._run(args)
|