Don't wrap in docker for little wrappers like ssh and telnet if the tool is available on the host
This commit is contained in:
parent
1d172ad635
commit
f424e9ce8f
5 changed files with 15 additions and 6 deletions
2
ssh.py
2
ssh.py
|
@ -1,9 +1,11 @@
|
|||
import subprocess
|
||||
import click
|
||||
from wrapper import check_programs_wrap
|
||||
|
||||
|
||||
@click.command(name='ssh')
|
||||
def cmd_ssh(cmd: list[str] = [], host: str = '172.16.42.1', user: str = 'kupfer', port: int = 22):
|
||||
check_programs_wrap('ssh')
|
||||
return subprocess.run([
|
||||
'ssh',
|
||||
'-o',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue