Skip to content

Commit caa7360

Browse files
authored
Update README.rst
1 parent 6a60d06 commit caa7360

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Simple and Intuitive
1717
SSHScript adds dollar-syntax syntax sugar to Python, which allows you to write scripts that closely resemble the process of manually performing operations.
1818
For example, here is a Python script with dollar-syntax that runs the hostname command on localhost, a remote server, and the server behind the remote server:
1919

20-
.. code-block:: python
20+
.. code-block::
2121
2222
## run "hostname" on localhost
2323
$hostname
@@ -28,13 +28,14 @@ For example, here is a Python script with dollar-syntax that runs the hostname c
2828
## run "hostname" on host2, with is behind the host1
2929
$hostname
3030
31+
3132
Flexible and Robust
3233
=======================
3334
SSHScript v2.0 makes a great improvement by providing all the features of dollar-syntax in the sshscript module. This makes SSHScript work exactly like any other counterpart package when integrating with existing projects. This allows users to use all of SSHScript's features in pure Python without writing dollar-syntax.
3435

3536
Here is an example of the same script as above, but using only the sshscript module:
3637

37-
.. code-block:: python
38+
.. code-block::
3839
3940
from sshscript import SSHScriptSession
4041
session = SSHScriptSession()
@@ -47,6 +48,7 @@ Here is an example of the same script as above, but using only the sshscript mod
4748
## run "hostname" on host2, with is behind the host1
4849
host2_session('hostname')
4950
51+
5052
Install
5153
=======
5254

@@ -76,7 +78,7 @@ Examples
7678

7779
An example of SSHScript dollar-syntax (v2.0):
7880

79-
.. code-block:: python
81+
.. code-block::
8082
8183
## filename: example.spy
8284
## run: sshscript example.spy
@@ -113,7 +115,7 @@ An example of SSHScript dollar-syntax (v2.0):
113115
114116
An example of SSHScript module(v2.0):
115117

116-
.. code-block:: python
118+
.. code-block::
117119
118120
## filename: example.py
119121
## run: python3 example.py
@@ -207,4 +209,4 @@ SSHScript v1.0
207209
|ImageLink|_
208210

209211
.. |ImageLink| image:: https://pepy.tech/badge/sshscript
210-
.. _ImageLink: https://pepy.tech/project/sshscript
212+
.. _ImageLink: https://pepy.tech/project/sshscript

0 commit comments

Comments
 (0)