mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 17:45:55 +02:00
17 lines
518 B
Python
17 lines
518 B
Python
|
|
# -*- coding: utf-8 -*-
|
||
|
|
|
||
|
|
from argparse import Namespace, ArgumentParser
|
||
|
|
|
||
|
|
from .Cmd import Cmd
|
||
|
|
from ..CmdDistro import CmdDistro
|
||
|
|
|
||
|
|
class CmdRefresh(Cmd): # export
|
||
|
|
|
||
|
|
def __init__(self, parent: CmdDistro) -> None:
|
||
|
|
super().__init__(parent, 'refresh', help="Refresh the distribution's notion of available packages")
|
||
|
|
|
||
|
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
||
|
|
super().add_arguments(parser)
|
||
|
|
|
||
|
|
async def _run(self, args: Namespace) -> None:
|
||
|
|
return await self._backend.run(args)
|