charmbracelet / lipgloss

Style definitions for nice terminal layouts 👄
MIT License
8.24k stars 231 forks source link

How to create trees #312

Closed hanxuanliang closed 3 months ago

hanxuanliang commented 5 months ago

Describe the bug

Upon reviewing the current release, the utilization of the tree has been eliminated. Now, what is the optimal approach for utilizing the tree API?

carreter commented 5 months ago

For anyone who is having issues with importing the tree and list modules, you can tell go to use the master branch release instead of the latest release:

go get github.com/charmbracelet/lipgloss@master

meowgorithm commented 5 months ago

As a note, tree and list are in master but not considered yet finalized until release, and we do expect to change the API a little more.

bashbunni commented 3 months ago

Hey, just an update. We've been working on lists and trees for a while now and have decided to bring the tree package out of internal. The linked PR includes examples on usage and a section in the README to get started with trees. Will keep this issue open until that PR is merged :)