Skip to content

Commit

Permalink
Update readme with 'tree'
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsbhat committed Jun 28, 2024
1 parent a7dc657 commit 245df25
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,29 @@ config3:
workflow: *mysqldatabase
```
### Dependency Tree
Want to see all your dependencies in a tree format? This `yamll` tool supports that too.
Using `yaml tree` will print dependencies just like the Linux `tree command`.
**Example**:
```sh
yamll tree -f import.yaml
```
**Output**:
```sh
└── internal/fixtures/import.yaml
├── internal/fixtures/base.yaml
│ └── internal/fixtures/base3.yaml
├── internal/fixtures/base2.yaml
│ └── internal/fixtures/base3.yaml
├── https://github.com/nikhilsbhat/yamll@main?path=internal/fixtures/base2.yaml
│ └── internal/fixtures/base3.yaml
└── http://localhost:3000/database.yaml
```
### Preventing Import Cycles
`yamll` detects and prevents import cycles. If an import cycle is detected, it will report an error and stop the merging
Expand Down

0 comments on commit 245df25

Please sign in to comment.