Graph-Easy

Graph-Easy-0.76

一个命令行流程图工具

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
sudo -i
# 下载安装包(0.76), current path: /usr/local/src/
wget https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Graph-Easy-0.76.tar.gz
# 解压缩
tar -xvf Graph-Easy-0.76.tar.gz
cd Graph-Easy-0.76
# 依赖 perl, 如果没有需要先安装 `apt-get install perl`
whereis perl # 查看 perl 是否安装成功
perl Makefile.PL
# make test
make test
# install
make install
# 查看是否安装成功
graph-easy
# 使用
echo "[ Bonn ] - car -> [ Berlin ]" | graph-easy
+------+ car +--------+
| Bonn | -----> | Berlin |
+------+ +--------+
echo "[ Bonn ] -> [ Berlin ] [ Berlin ] -> [ Frankfurt ] { border: 1px dotted black; } [ Frankfurt ] -> [ Dresden ] [ Berlin ] ..> [ Potsdam ] [ Potsdam ] => [ Cottbus ]" | graph-easy
+------+ +---------+ ............. +---------+
| Bonn | --> | Berlin | --> : Frankfurt : --> | Dresden |
+------+ +---------+ :...........: +---------+
:
:
v
+---------+ +-----------+
| Potsdam | ==> | Cottbus |
+---------+ +-----------+