这是indexloc提供的服务,不要输入任何密码
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
11 changes: 10 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Unreleased
Upcoming Release (TBD)
======================

Bug Fixes
--------
* Improve missing ssh-extras message.


1.37.1 (2025/07/28)
======================

Internal
Expand All @@ -7,6 +15,7 @@ Internal
* Align LICENSE with SPDX format.
* Fix deprecated `license` specification format in `pyproject.toml`.


1.37.0 (2025/07/28)
======================

Expand Down
16 changes: 10 additions & 6 deletions mycli/packages/paramiko_stub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""A module to import instead of paramiko when it is not available (to avoid
checking for paramiko all over the place).

When paramiko is first envoked, it simply shuts down mycli, telling
user they either have to install paramiko or should not use SSH
features.
When paramiko is first invoked, this simply shuts down mycli, telling the
user they either have to install paramiko or should not use SSH features.

"""

Expand All @@ -15,11 +14,16 @@ def __getattr__(self, name: str) -> None:

print(
dedent("""
To enable certain SSH features you need to install paramiko and sshtunnel:
To enable certain SSH features you need to install ssh extras:

pip install paramiko sshtunnel
pip install 'mycli[ssh]'

or

pip install paramiko sshtunnel

This is required for the following command-line arguments:

It is required for the following configuration options:
--list-ssh-config
--ssh-config-host
--ssh-host
Expand Down