Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

nits: update readme and test #19

Merged
merged 1 commit into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A minimal, command-oriented CLI package.
- Very small, simple API.
- Support for POSIX flags.
- Only external dependency is [spf13/pflag](https://github.com/spf13/pflag).
- Subcommands.
- Subcommands and subcommand aliases.
- Auto-generated help.

## Install
Expand Down Expand Up @@ -135,5 +135,5 @@ Usage: subcommand [flags]
This is a simple example of subcommands.

Commands:
s,sub - This is a simple subcommand.
s, sub - This is a simple subcommand.
```
2 changes: 1 addition & 1 deletion command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestSubCmdAliases(t *testing.T) {
RunRoot(cmd)
// If "success" isn't written into the buffer
// then we failed to find the subcommand by alias.
got := string(subCmd.buf.Bytes())
got := subCmd.buf.String()
assert.Equal(t, t.Name(), "success", got)
})
}
Expand Down