看文檔時昏鹃,會看到這種字符畫出來的流程圖,簡潔又美觀诀诊,那這種圖怎么畫出來的呢洞渤? 答案是 Graph-Easy
.
+------+ +---------+ ............. +---------+
| Bonn | --> | Berlin | --> : Frankfurt : --> | Dresden |
+------+ +---------+ :...........: +---------+
:
:
v
+---------+ +-----------+
| Potsdam | ==> | Cottbus |
+---------+ +-----------+
Graph-Easy 的安裝,官網(wǎng)寫的不是太明確属瓣,試了好幾種方法载迄,才找到一種好用的安裝方法。
安裝
在 官網(wǎng) 左側(cè)邊欄中找到 Download
(大概456.23Kb)奠涌,下載下來宪巨。
然后在 終端
命令行中輸入以下命令:
$ tar -xzf Graph-Easy-xxx.tar.gz
$ chdir Graph-Easy-xxx
$ perl Makefile.PL
# 執(zhí)行測試
$ make test
# 測試全部ok后,用超級用戶安裝
$ sudo make install
然后就可以使用 graph-easy
命令
使用
語法簡潔,很容易上手溜畅。參照官方使用文檔
SnapShot
$ echo "[ Bonn ] -> [ Berlin ] [ Berlin ] -> [ Frankfurt ] { border: 1px dotted black; } [ Frankfurt ] -> [ Dresden ] [ Berlin ] ..> [ Potsdam ] [ Potsdam ] => [ Cottbus ]" | graph-easy