
go-tree in a nutshell
go-tree is an implementation of the unix tree
comand in go. It also exposes
an interface for those ones who wants to use the folder and files scanner in
their own programs.
Installation
It's posible to install it by using go:
go install github.com/alvarogf97/go-tree@latest
Usage
please take a look of the --help flag for the command by executing
>>> go-tree --help
... Usage:
... go-tree [flags]
...
... Flags:
... -d, --directory string directory (required) (default "./")
... -h, --help help for go-tree
... -s, --show hidden shows hidden files & folders
...
example:
>>> go-tree
... ├── cmd
... │ ├── root.go
... │ └── tree.go
... ├── pkg
... │ ├── fs
... │ │ ├── file.go
... │ │ ├── file_test.go
... │ │ ├── folder.go
... │ │ └── folder_test.go
... │ ├── scan
... │ │ ├── options.go
... │ │ ├── options_test.go
... │ │ ├── path.go
... │ │ ├── path_test.go
... │ │ ├── scanner.go
... │ │ ├── scanner_test.go
... │ │ ├── walker.go
... │ │ └── walker_test.go
... │ └── shortcuts
... │ │ └── tree.go
... ├── go.mod
... ├── go.sum
... ├── license.md
... ├── main.go
... └── readme.md