grim/reap
Clone
Summary
Browse
Changes
Graph
add a .hgignore
draft
2021-03-17, Gary Kramlich
5bb93ac0d42b
add a .hgignore
package
main
import
(
"github.com/alecthomas/kong"
"keep.imfreedom.org/grim/reap/consts"
"keep.imfreedom.org/grim/reap/version"
)
type
cli
struct
{
Version
version
.
Cmd
`kong:"cmd,help='Display the version number and exit'"`
}
func
main
()
{
cli
:=
cli
{}
ctx
:=
kong
.
Parse
(
&
cli
,
kong
.
Name
(
consts
.
Name
),
kong
.
Description
(
consts
.
Description
),
kong
.
UsageOnError
(),
)
err
:=
ctx
.
Run
()
ctx
.
FatalIfErrorf
(
err
)
}