Stub for receive in the transfer kitten

This commit is contained in:
Kovid Goyal 2021-10-04 21:31:02 +05:30
parent ed95f7dfa0
commit 14d36e3727
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 14 additions and 1 deletions

View File

@ -86,7 +86,8 @@ def main(args: List[str]) -> None:
raise SystemExit('Usage: kitty +kitten transfer file_or_directory ...') raise SystemExit('Usage: kitty +kitten transfer file_or_directory ...')
if cli_opts.direction == 'send': if cli_opts.direction == 'send':
send_main(cli_opts, items) send_main(cli_opts, items)
return else:
receive_main(cli_opts, items)
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -0,0 +1,12 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2021, Kovid Goyal <kovid at kovidgoyal.net>
from typing import List
from kitty.cli_stub import TransferCLIOptions
def receive_main(cli_opts: TransferCLIOptions, args: List[str]) -> None:
pass