net: make new module from {forwarding,ssh,telnet}.py
This commit is contained in:
parent
6fed749488
commit
afca099ede
9 changed files with 16 additions and 12 deletions
13
telnet.py
13
telnet.py
|
@ -1,13 +0,0 @@
|
|||
import subprocess
|
||||
import click
|
||||
from wrapper import check_programs_wrap
|
||||
|
||||
|
||||
@click.command(name='telnet')
|
||||
def cmd_telnet(hostname: str = '172.16.42.1'):
|
||||
"""Establish Telnet connection to device (e.g in debug-initramfs)"""
|
||||
check_programs_wrap('telnet')
|
||||
subprocess.run([
|
||||
'telnet',
|
||||
hostname,
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue