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 6daf5ba commit 329dac4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,35 @@ Command mktree creates a file tree out of `tree` output read from standard input
*Usage*

```bash
~ $ tree
~ $ gotree
.
├── dir
│   └── file.txt
└── file.txt

1 directory, 2 files

~ $ gotree | mktree -o /tmp/mktree

~ $ gotree /tmp/mktree
/tmp/mktree
├── dir
│   └── file.txt
└── file.txt

1 directory, 2 files
```
```bash
~ $ gotree > tree.txt

~ $ mktree -o /tmp/mktree2 tree.txt

~ $ gotree /tmp/mktree2
/tmp/mktree2
├── dir
│   └── file.txt
└── file.txt

1 directory, 2 files
```

Expand Down
12 changes: 6 additions & 6 deletions cmd/gotree/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
// Usage
//
// NAME:
// gotree - Go implementation of the Unix tree command
// gotree - Go implementation of the Unix tree command
//
// USAGE:
// gotree [OPTION]... [DIRECTORY]
// gotree [OPTION]... [DIRECTORY]
//
// OPTIONS:
// -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
// -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
//
Expand Down

0 comments on commit 329dac4

Please sign in to comment.