quintilesims / layer0

Build, Manage, and Deploy Your Applications
Apache License 2.0
44 stars 20 forks source link

Show dependency tree on CLI #504

Open zpatrick opened 6 years ago

zpatrick commented 6 years ago

Similar to the tree command in bash, implement a similar command in the Layer0 CLI to show the relationship between entities.

diemonster commented 6 years ago

I found some existing libraries and/or examples that we can use here for a tree-like printer:

https://github.com/a8m/tree https://github.com/DiSiqueira/GoTree https://github.com/kddeisz/tree/blob/master/tree.go

diemonster commented 6 years ago

In considering UX for this, I don't believe we would even need to go farther than one level below root, unless we consider a load_balancer a dependency of a service.

environment_name
├── service_name
├── elb_name