grim/amongchat
Clone
Summary
Browse
Changes
Graph
Initial revision
draft
default
tip
2020-09-23, Gary Kramlich
dead8a9014bd
Initial revision
package
main
import
(
"github.com/alecthomas/kong"
"keep.imfreedom.org/grim/amongchat/globals"
"keep.imfreedom.org/grim/amongchat/server"
)
type
cli
struct
{
globals
.
Globals
Serve
server
.
Cmd
`kong:"cmd,help='Run the webserver',default='1'"`
}
func
main
()
{
cli
:=
cli
{}
ctx
:=
kong
.
Parse
(
&
cli
,
kong
.
Name
(
"among-chat"
),
kong
.
Description
(
"Among Us web socket exporter"
),
kong
.
UsageOnError
(),
)
err
:=
ctx
.
Run
(
&
cli
.
Globals
)
ctx
.
FatalIfErrorf
(
err
)
}