Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
syimyuzya committed Mar 21, 2016
1 parent b03dc1f commit 6c4ba89
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TUNet CLI

version 0.2.0
version 0.4.0

by 思無邪SyiMyuZya

Expand All @@ -10,7 +10,17 @@ by 思無邪SyiMyuZya

用於無圖形界面之環境。可顯示當前在線狀態、登入登出校園網。

需要python2(>=2.6)以執行。
需要 Python 2 (>=2.6) 以執行。

食用場合包括並不限於:

- 當你不使用圖形界面時
- 當你的 Linux 桌面環境又掛掉了
- 當你剛剛裝好 Arch Linux 之後
- 當你調教你的嵌入式系統連接公網時
- 當你操作 Linux 服務器連接公網時(風險自負)

使用方法:

1. 顯示在線狀態

Expand All @@ -21,18 +31,21 @@ by 思無邪SyiMyuZya
2. 登入

```sh
./tunetctl -l #提示輸入用戶名、密碼
./tunetctl -l #會提示輸入賬號密碼
# 登錄並保存用戶信息到指定文件
# 登入並保存賬號密碼到指定文件
./tunetctl -s user.txt
# 或保存至默認文件 ~/.tunet
./tunetctl -s
# 使用文件保存的用戶信息
# 使用文件保存的賬號密碼登入
./tunetctl -f user.txt
# 使用默認文件(~/.tunet)登入
./tunetctl -d
# 或使用默認文件 ~/.tunet
./tunetctl -f
```

注意:之前用於默認文件登入的 `-d` 選項已刪除,目前直接指定 `-f``-s` 均為指定默認文件。

3. 登出

```sh
Expand All @@ -49,9 +62,9 @@ by 思無邪SyiMyuZya

### TODO

* [x] 支持新版協議
* [x] ~~支持新版協議(2015校園網更新後已失效)~~
* [x] 用文件保存/讀取用戶名與密碼(md5散列值)
* [ ] ~~重構選項解析部分的代碼,用argparse替代getopt~~
* [x] 重構選項解析部分的代碼,用 argparse 替代 getopt
* [ ] 處理網絡異常
* [ ] ~~將服務器原始錯誤信息改為提示信息(新協議原始信息已經足夠)~~
* [ ] 多語言(不一定實作…因為無圖形界面時貌似不需要多語言?)
* [ ] ~~多語言(不一定實作…因為無圖形界面時貌似不需要多語言?)~~

0 comments on commit 6c4ba89

Please sign in to comment.