CopyContext: Replace src_uri, dst_uri by src, dst
Allow to pass ready-made FileContext objects to CopyContext's destructor so it doesn't need to instantiate them itself.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
772512aee0
commit
f2ca32a343
4 changed files with 21 additions and 11 deletions
|
|
@ -18,7 +18,7 @@ class Cmd(Base): # export
|
|||
|
||||
@asynccontextmanager
|
||||
async def ctx(self, **kwargs) -> TarIo:
|
||||
async with TarIo.create(src_uri=self.app.args.archive_path, **kwargs) as ret:
|
||||
async with TarIo.create(src=self.app.args.archive_path, **kwargs) as ret:
|
||||
ret.src.add_proc_filter(FileContext.Direction.In, ProcFilterGpg(ec=self.app.exec_context))
|
||||
yield ret
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue