MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

feat: + tree command

Open iorisa opened this issue 1 year ago • 2 comments
trafficstars

Features Implement the same functionality as the tree command. Example:

        root
        +-- dir1
        |   +-- file1.txt
        |   +-- file2.txt
        +-- dir2
        |   +-- subdir1
        |   |   +-- file1.txt
        |   |   +-- file2.txt
        |   +-- subdir2
        |       +-- file1.txt
        |       +-- file2.txt
        +-- file.txt

iorisa avatar Mar 11 '24 14:03 iorisa

I still want to ask a question: now that the tree command exists and it provides a large number of options, why should we reimplement it? What are the benefits?

geekan avatar Mar 11 '24 16:03 geekan

Codecov Report

Attention: Patch coverage is 92.85714% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 82.59%. Comparing base (bbb9645) to head (9cfcfb1). Report is 231 commits behind head on main.

Files Patch % Lines
metagpt/utils/tree.py 92.85% 4 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #985      +/-   ##
==========================================
- Coverage   82.71%   82.59%   -0.13%     
==========================================
  Files         227      228       +1     
  Lines       13196    13252      +56     
==========================================
+ Hits        10915    10945      +30     
- Misses       2281     2307      +26     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Mar 12 '24 03:03 codecov-commenter