More work on ssh copy

This commit is contained in:
Kovid Goyal
2022-02-28 07:58:49 +05:30
parent fadae42715
commit 4b6bfaffba
4 changed files with 49 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
# generated by gen-config.py DO NOT edit
import typing
import kitty.cli_stub
import kittens.ssh.copy
option_names = ( # {{{
@@ -12,7 +12,7 @@ class Options:
hostname: str = '*'
remote_dir: str = '.local/share/kitty-ssh-kitten'
shell_integration: str = 'inherit'
copy: typing.Dict[str, kitty.cli_stub.CLIOptions] = {}
copy: typing.Dict[str, kittens.ssh.copy.CopyInstruction] = {}
env: typing.Dict[str, str] = {}
config_paths: typing.Tuple[str, ...] = ()
config_overrides: typing.Tuple[str, ...] = ()

View File

@@ -4,9 +4,7 @@
import posixpath
from typing import Any, Dict, Iterable, Optional, Tuple
from kitty.cli_stub import CopyCLIOptions
from ..copy import parse_copy_instructions
from ..copy import CopyInstruction, parse_copy_instructions
DELETE_ENV_VAR = '_delete_this_env_var_'
@@ -33,7 +31,7 @@ def env(val: str, current_val: Dict[str, str]) -> Iterable[Tuple[str, str]]:
yield val, DELETE_ENV_VAR
def copy(val: str, current_val: Dict[str, str]) -> Iterable[Tuple[str, CopyCLIOptions]]:
def copy(val: str, current_val: Dict[str, str]) -> Iterable[Tuple[str, CopyInstruction]]:
yield from parse_copy_instructions(val)