Skip to content

Commit 36534d0

Browse files
committed
update readme
1 parent 71d4efd commit 36534d0

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
11
# king
22

3-
Use as follows:
4-
5-
```go
6-
func main() {
7-
v := info.NewGoReleaser(version, commit, date)
8-
cli := cmd.CLI{}
9-
app := kong.Parse(&cli, king.DefaultOptions(
10-
king.Config{
11-
Name: "appname",
12-
Description: "A description",
13-
Version: v.String(),
14-
},
15-
)...)
16-
defer cancel()
17-
if err := app.Run(&cli.Globals, l); err != nil {
18-
log.Fatal(err)
19-
}
20-
}
21-
```
3+
See [_example/main.go](../master/_example/main.go) on how to use it.

0 commit comments

Comments
 (0)