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

Render stack:list as tree #10

Closed
fbrnc opened this issue Jun 21, 2016 · 2 comments
Closed

Render stack:list as tree #10

fbrnc opened this issue Jun 21, 2016 · 2 comments

Comments

@fbrnc
Copy link
Member

fbrnc commented Jun 21, 2016

Similar to the unix tool tree.
PHP's RecursiveTreeIterator could help, but it's not so simple to 1) make it look that nice and be prepare the data in the right format.
Also if a node has only one child it should be flattened (to avoid a large nested hierarchy) - see s3-bucket in the example.

Example:

app-dpl-vpc-base
app-dpl-vpc-subnets
app-dpl-setup
app-dpl-deploy-build1
app-dpl-deploy-build2
app-qa-vpc-base
app-qa-vpc-subnets
app-qa-setup
app-qa-deploy-build1
app-qa-deploy-build2
s3-bucket
.
├── app
│   ├── dpl
│   │   ├── vpc
│   │   │   ├── base
│   │   │   └── subnets
│   │   └── deploy
│   │       ├── build1
│   │       └── build2
│   └── qa
│       ├── vpc
│       │   ├── base
│       │   └── subnets
│       └── deploy
│           ├── build1
│           └── build2
└── s3-bucket
@dng-dev
Copy link
Contributor

dng-dev commented Aug 23, 2016

Hi @fbrnc i added a pull request with the "stack:tree" command.
bildschirmfoto 2016-08-24 um 01 11 17

@kj187
Copy link
Contributor

kj187 commented Oct 13, 2016

Its implemented correct?
So we can close this issue

@kj187 kj187 closed this as completed Oct 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants