Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/spring/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release History
===============

1.1.9
---
* Fix the crash in windows.

1.1.8
---
* Add command `az spring app connect`.
Expand Down
9 changes: 7 additions & 2 deletions src/spring/azext_spring/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import re
import os
import time
import tty
from azure.cli.core._profile import Profile

from ._websocket import WebSocketConnection, recv_remote, send_stdin, EXEC_PROTOCOL_CTRL_C_MSG
Expand Down Expand Up @@ -1499,7 +1498,13 @@ def app_connect(cmd, client, resource_group, service, name,
reader.daemon = True
reader.start()

tty.setcbreak(sys.stdin.fileno()) # needed to prevent printing arrow key characters
try:
import tty
tty.setcbreak(sys.stdin.fileno()) # needed to prevent printing arrow key characters
except ModuleNotFoundError:
# tty works only on Unix
pass

writer = Thread(target=send_stdin, args=(conn,))
writer.daemon = True
writer.start()
Expand Down
2 changes: 1 addition & 1 deletion src/spring/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.
VERSION = '1.1.8'
VERSION = '1.1.9'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down