{"id":19315384,"url":"https://github.com/thatisuday/tree","last_synced_at":"2025-06-13T22:33:12.024Z","repository":{"id":57521977,"uuid":"253047039","full_name":"thatisuday/tree","owner":"thatisuday","description":"List contents of a directory in tree-like format.","archived":false,"fork":false,"pushed_at":"2020-04-11T20:08:30.000Z","size":68,"stargazers_count":20,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T01:41:59.550Z","etag":null,"topics":["cli","directory-traversal","go-tools","golang","tree"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thatisuday.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-04T16:34:07.000Z","updated_at":"2025-03-07T12:09:52.000Z","dependencies_parsed_at":"2022-08-26T20:24:02.715Z","dependency_job_id":null,"html_url":"https://github.com/thatisuday/tree","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatisuday%2Ftree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatisuday%2Ftree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatisuday%2Ftree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatisuday%2Ftree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatisuday","download_url":"https://codeload.github.com/thatisuday/tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250277290,"owners_count":21404024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","directory-traversal","go-tools","golang","tree"],"created_at":"2024-11-10T01:06:42.990Z","updated_at":"2025-04-22T16:32:18.440Z","avatar_url":"https://github.com/thatisuday.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tree\n![go-version](https://img.shields.io/github/go-mod/go-version/thatisuday/tree?label=Go%20Version) \u0026nbsp;\n![CI](https://github.com/thatisuday/tree/workflows/CI/badge.svg?style=flat-square) \u0026nbsp;\n![release](https://github.com/thatisuday/tree/workflows/release/badge.svg?style=flat-square)\n\nA command-line tool to print the contents of a relative or an absolute directory in a tree-like format. It conditionally displays file size and file mode in a neat and colorful format.\n\n![demo](/assets/demo.gif)\n\n\u003e This CLI application is made using [Commando](https://github.com/thatisuday/commando).\n\n## Installation\n```\n$ GO111MODULE=on go get -u \"github.com/thatisuday/tree\"\n```\n\n## Usage\n```\n$  tree --help\n\nThis tool lists the contents of a directory in tree-like format.\nIt can also display information about files and folders like size, permission and ownership.\n\nUsage:\n   tree [dir] {flags}\n   tree \u003ccommand\u003e {flags}\n\nCommands: \n   info                          displays detailed information of a directory\n   help                          displays usage informationn\n   version                       displays version number\n\nArguments: \n   dir                           local directory path (default: ./)\n\nFlags: \n   --no-color                    ignore colored output (default: false)\n   -h, --help                    displays usage information of the application or a command (default: false)\n   --ignore                      ignore directories (separated by comma) (default: .git,node_modules)\n   -l, --level                   level of depth to travel (default: 1)\n   --mode                        display mode of the each file (default: false)\n   --size                        display size of the each file (default: false)\n   -v, --version                 displays version number (default: false)\n```\n\n## Example\n```\n$ tree /projects/commando -l=2 --size --mode\n├── .DS_Store (6.1kb) (644)\n├── .github (755)\n|  └── workflows (755)\n├── .gitignore (269 bytes) (644)\n├── LICENSE (1.1kb) (644)\n├── README.md (23.8kb) (644)\n├── assets (755)\n|  ├── logo.png (285.0kb) (644)\n|  └── logo.svg (87.0kb) (644)\n├── commando.go (21.5kb) (644)\n├── commando_test.go (10.7kb) (644)\n├── demo (755)\n|  ├── .DS_Store (6.1kb) (644)\n|  ├── reactor.cast (6.3kb) (600)\n|  ├── reactor.gif (308.3kb) (644)\n|  ├── reactor.gif.sh (49 bytes) (644)\n|  └── reactor.go (4.2kb) (644)\n├── go.mod (94 bytes) (644)\n├── go.sum (533 bytes) (644)\n├── templates.go (1.5kb) (644)\n└── tests (755)\n   ├── empty-exec-name.go (172 bytes) (644)\n   ├── invalid-default-value.go (259 bytes) (644)\n   ├── missing-action-function.go (208 bytes) (644)\n   └── valid-registry.go (4.4kb) (644)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatisuday%2Ftree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatisuday%2Ftree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatisuday%2Ftree/lists"}