Skip to content

Commit

Permalink
update readme for new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Sep 23, 2018
1 parent f76d07a commit f7cb796
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 1 deletion.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
- [sync-run](https://github.com/ShixiangWang/sync-deploy#sync-run)
- [sync-deploy](https://github.com/ShixiangWang/sync-deploy#sync-deploy)
- [sync-check](https://github.com/ShixiangWang/sync-deploy#sync-check)

- [新特性](https://github.com/ShixiangWang/sync-deploy#new-feature):添加、删除以及切换远程主机
- [计算操作实例](https://github.com/ShixiangWang/sync-deploy#计算操作实例)


Expand Down Expand Up @@ -344,6 +346,41 @@ Job ID Name User Time Use S Queue
```
## New feature
To easily work with multiple hosts, `sync-hostadd`, `sync-hostdel` and `sync-switch` has been added to this tool for add/delete and switch host.
### sync-hostadd
```shell
$ sync-hostadd -h
Usage: sync-hostadd -u host_name -d host_ip -p host_port
==> examples:
sync-hostadd -u wangshx -d 10.15.22.110 -p 22
```
### sync-hostdel
```shell
$ sync-hostdel -h
Usage: sync-hostdel -u host_name -d host_ip -p host_port
==> examples:
sync-hostdel -u wangshx -d 10.15.22.110 -p 22
```
### sync-switch
```shell
$ sync-switch -h
Usage: sync-switch -u host_name [-d] <host_ip> [-p] <host_port>
[]<> mark optional argument and corresponding value.
==> examples:
sync-switch -u wangshx -d 10.15.22.110 -p 22
```
## 问题
有问题欢迎[提交issue](https://github.com/ShixiangWang/sync-deploy/issues)进行讨论。
Expand Down
38 changes: 37 additions & 1 deletion README_english.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The key's randomart image is:
You can get rid of using `ssh command` every time, the tool will run automatically for you.
There are 7 command available now.
There are 10 command available now.
6 of them all can get usage by add `-h` option.
Expand Down Expand Up @@ -63,3 +63,39 @@ The left three commands are useful when you want deploy computation task in PBS
You can use `sync-template` to generate a template, and use `sync-deploy` to deploy task script on high performance platform (HPC) and use `sync-check` to check the status of you job.
The last command is `sync-command`, you can use it to run any commands on remote.
## New feature
To easily work with multiple hosts, `sync-hostadd`, `sync-hostdel` and `sync-switch` has been added to this tool for add/delete and switch host.
### sync-hostadd
```shell
$ sync-hostadd -h
Usage: sync-hostadd -u host_name -d host_ip -p host_port
==> examples:
sync-hostadd -u wangshx -d 10.15.22.110 -p 22
```
### sync-hostdel
```shell
$ sync-hostdel -h
Usage: sync-hostdel -u host_name -d host_ip -p host_port
==> examples:
sync-hostdel -u wangshx -d 10.15.22.110 -p 22
```
### sync-switch
```shell
$ sync-switch -h
Usage: sync-switch -u host_name [-d] <host_ip> [-p] <host_port>
[]<> mark optional argument and corresponding value.
==> examples:
sync-switch -u wangshx -d 10.15.22.110 -p 22
```

0 comments on commit f7cb796

Please sign in to comment.