Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed Nov 2, 2020
1 parent 71d4efd commit 36534d0
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
# king

Use as follows:

```go
func main() {
v := info.NewGoReleaser(version, commit, date)
cli := cmd.CLI{}
app := kong.Parse(&cli, king.DefaultOptions(
king.Config{
Name: "appname",
Description: "A description",
Version: v.String(),
},
)...)
defer cancel()
if err := app.Run(&cli.Globals, l); err != nil {
log.Fatal(err)
}
}
```
See [_example/main.go](../master/_example/main.go) on how to use it.

0 comments on commit 36534d0

Please sign in to comment.