moul / assh

:computer: make your ssh client smarter
https://manfred.life/assh
MIT License
3.01k stars 154 forks source link

graphviz "inherits" #235

Open neopaf opened 7 years ago

neopaf commented 7 years ago

is it possible to visualise the "inherits" relations? add relevant lines, maybe dashed or dotted to separate them visually. not sure if it is worth to label them.

currently nodes that inherit from others are not displayed at all?

moul commented 7 years ago

Done, can you try?

moul commented 7 years ago

Here is an example: https://github.com/moul/advanced-ssh-config/tree/master/examples/readme-full-example

neopaf commented 7 years ago

Manfred, for some reason I don't seem to see anything new:

rualpe-ws:pmf paf$ brew install assh --HEAD --build-from-source
==> Using the sandbox
==> Cloning https://github.com/moul/advanced-ssh-config.git
Updating /Users/paf/Library/Caches/Homebrew/assh--git
==> Checking out branch master
==> go build -o /usr/local/Cellar/assh/HEAD-eb70800/bin/assh
🍺  /usr/local/Cellar/assh/HEAD-eb70800: 3 files, 9MB, built in 12 seconds
rualpe-ws:pmf paf$ which assh
/usr/local/bin/assh
rualpe-ws:pmf paf$ ls -la /usr/local/bin/assh
lrwxr-xr-x  1 paf  admin  36 21 мар 10:36 /usr/local/bin/assh -> ../Cellar/assh/HEAD-eb70800/bin/assh
rualpe-ws:pmf paf$ assh config graphviz 
digraph G {
    "customer"->"term"[ color=red, label=1 ];
    "customer7pbrf1"->"customer*"[ color=red, label="customer2smp11" ];
    "term"->"as1"[ color=red, label=1 ];
    "customer7web"->"customer*"[ color=red, label="customer2smp11" ];
    "as1" [ color=blue ];
    "customer" [ color=blue ];

    "customer*" [ color=blue ];
    "customer7pbrf1" [ color=blue ];
    "customer7web" [ color=blue ];
    "term" [ color=blue ];

}

does not seem to reflect any inheritance for me.

original config. assh-paf.txt