mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
jw.pkg.cmds.distro.CmdDup: Add Module
Add CmdDup, the class providing the "jw-pkg.py distro dup" subcommand. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6e3fec0bec
commit
0b6fb48485
1 changed files with 17 additions and 0 deletions
17
src/python/jw/pkg/cmds/distro/CmdDup.py
Normal file
17
src/python/jw/pkg/cmds/distro/CmdDup.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from argparse import Namespace, ArgumentParser
|
||||
|
||||
from .Cmd import Cmd
|
||||
from ..CmdDistro import CmdDistro
|
||||
|
||||
class CmdDup(Cmd): # export
|
||||
|
||||
def __init__(self, parent: CmdDistro) -> None:
|
||||
super().__init__(parent, 'dup', help="Upgrade distribution")
|
||||
|
||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||
super().add_arguments(parser)
|
||||
|
||||
async def _run(self, args: Namespace) -> None:
|
||||
return await self._backend.run(args)
|
||||
Loading…
Add table
Add a link
Reference in a new issue