Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Aug 10, 2014
1 parent 483163d commit 6daf5ba
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,19 @@ github.com/rjeczalik/tools/fs/.
├── util.go
└── util_test.go

6 directories, 11 files
2 directories, 11 files
```

**NOTE** `fs.Filesystem` does not support symlinks yet ([#3](https://github.com/rjeczalik/tools/issues/3)), that's why `gotree` will print any symlink as regular file or directory. Moreover it won't follow nor resolve any of them.

```bash
~/src $ gotree -go=80 github.com/rjeczalik/tools/fs
memfs.Must(memfs.UnmarshalTab([]byte(".\n\tfs.go\n\tfsutil\n\t\tfsutil.go" +
"\n\t\tfsutil_test.go\n\t\ttee.go\n\t\ttee_test.go\n\tmemfs\n\t\tmem" +
"fs.go\n\t\tmemfs_test.go\n\t\ttree.go\n\t\ttree_test.go\n\t\tutil.g" +
"o\n\t\tutil_test.go\n")))
```

## cmd/mktree [![GoDoc](https://godoc.org/github.com/rjeczalik/tools/cmd/mktree?status.png)](https://godoc.org/github.com/rjeczalik/tools/cmd/mktree)

Command mktree creates a file tree out of `tree` output read from standard input.
Expand Down
39 changes: 18 additions & 21 deletions cmd/gotree/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,28 @@
// gotree [OPTION]... [DIRECTORY]
//
// OPTIONS:
// -a All files are listed (NOT IMPLEMENTED)
// -d List directories only (NOT IMPLEMENTED)
// -L level Descend only <level> directories deep
// -a All files are listed
// -d List directories only
// -L level Descend only <level> directories deep
// -go width Output as Go literal with specified maximum column width
//
// Example
//
// ~/src $ gotree -L 1 github.com/rjeczalik/tools
// github.com
// ── rjeczalik
// ── tools
// ├── .git/
// ├── .gitignore
// ├── .travis.yml
// ├── LICENSE
// ├── README.md
// ├── cmd/
// ├── doc.go
// ├── fs/
// └── netz/
// ~/src $ gotree -a -L 1 github.com/rjeczalik/tools
// github.com/rjeczalik/tools/.
// ── .git/
// ── .gitignore
// ├── .travis.yml
// ├── LICENSE
// ├── README.md
// ├── appveyor.yml
// ├── cmd/
// ├── doc.go
// ├── fs/
// ├── netz/
// └── rw/
//
// 7 directories, 5 files
//
// TODO
//
// * do not list hidden files (currently gotree has -a set by default)
// 5 directories, 6 files
package main

import (
Expand Down

0 comments on commit 6daf5ba

Please sign in to comment.