prettypath

command module
v0.0.0-...-9b93476 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 6 Imported by: 0

README

prettypath

Pretty to print directory path, like shell tree.

Installation

To install this package, you need to install Go and set your Go workspace first.

  1. The first need Go installed (version 1.11+ is required), then you can use the below Go command to install fileserver.
$ go install github.com/jummyliu/prettypath@amin

Usage

$ prettypath -h

Usage of prettypath:
  -depth int
        max depth, -1 is unrestricted (default -1)
  -h    help
  -path string
        basic path (default ".")
$ prettypath -path .
.
|- Readme.md
|- go.mod
|- main.go

$ prettypath -path . -depth 3 > tree.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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