mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
13 lines
321 B
Python
13 lines
321 B
Python
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,
|
|
])
|