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:
InsanePrawn 2021-09-29 23:49:46 +02:00
parent 1d172ad635
commit f424e9ce8f
5 changed files with 15 additions and 6 deletions

View file

@ -1,11 +1,11 @@
import subprocess
import click
from wrapper import enforce_wrap
from wrapper import check_programs_wrap
@click.command(name='telnet')
def cmd_telnet(hostname: str = '172.16.42.1'):
enforce_wrap()
check_programs_wrap('telnet')
subprocess.run([
'telnet',
hostname,