mirror of https://github.com/huashengdun/webssh
Updated README
parent
9dec4af4b9
commit
e00701720a
|
@ -121,7 +121,7 @@ Custom font family usage example:
|
||||||
|
|
||||||
Support passing arguments by url (query or fragment) like following examples:
|
Support passing arguments by url (query or fragment) like following examples:
|
||||||
|
|
||||||
Passing form data (password must be encoded in base64)
|
Passing form data (password must be encoded in base64, privatekey not supported)
|
||||||
```bash
|
```bash
|
||||||
http://localhost:8888/?hostname=xx&username=yy&password=str_base64_encoded
|
http://localhost:8888/?hostname=xx&username=yy&password=str_base64_encoded
|
||||||
```
|
```
|
||||||
|
@ -141,7 +141,7 @@ Passing an encoding
|
||||||
http://localhost:8888/#encoding=gbk
|
http://localhost:8888/#encoding=gbk
|
||||||
```
|
```
|
||||||
|
|
||||||
Passing a command
|
Passing a command executed right after login
|
||||||
```bash
|
```bash
|
||||||
http://localhost:8888/?command=pwd
|
http://localhost:8888/?command=pwd
|
||||||
```
|
```
|
||||||
|
@ -160,6 +160,11 @@ docker-compose down
|
||||||
|
|
||||||
### Tests
|
### Tests
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
```
|
||||||
|
pip install pytest pytest-cov codecov flake8 mock
|
||||||
|
```
|
||||||
|
|
||||||
Use unittest to run all tests
|
Use unittest to run all tests
|
||||||
```
|
```
|
||||||
python -m unittest discover tests
|
python -m unittest discover tests
|
||||||
|
|
11
README.rst
11
README.rst
|
@ -130,7 +130,8 @@ URL Arguments
|
||||||
Support passing arguments by url (query or fragment) like following
|
Support passing arguments by url (query or fragment) like following
|
||||||
examples:
|
examples:
|
||||||
|
|
||||||
Passing form data (password must be encoded in base64)
|
Passing form data (password must be encoded in base64, privatekey not
|
||||||
|
supported)
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
|
@ -154,7 +155,7 @@ Passing an encoding
|
||||||
|
|
||||||
http://localhost:8888/#encoding=gbk
|
http://localhost:8888/#encoding=gbk
|
||||||
|
|
||||||
Passing a command
|
Passing a command executed right after login
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
|
@ -178,6 +179,12 @@ Tear down the app
|
||||||
Tests
|
Tests
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
pip install pytest pytest-cov codecov flake8 mock
|
||||||
|
|
||||||
Use unittest to run all tests
|
Use unittest to run all tests
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
Loading…
Reference in New Issue