go-tree

command module
v0.0.0-...-dd86992 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Build Status Coverage Status

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
fs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL