grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
remove some debug output
2019-04-18, Gary Kramlich
ceeb74cb0ce0
remove some debug output
package
main
import
(
"os"
"github.com/alecthomas/kong"
log
"github.com/sirupsen/logrus"
"bitbucket.org/rw_grim/hgkeeper/setup"
"bitbucket.org/rw_grim/hgkeeper/ssh"
)
type
commands
struct
{
ReposPath
string
`kong:"flag,name='repos-path',default='repos',help='the directory where the repository are stored'"`
Serve
ssh
.
ServeCommand
`kong:"cmd,help='run the ssh server'"`
Setup
setup
.
SetupCommand
`kong:"cmd,help='inital setup for the server'"`
}
func
init
()
{
log
.
SetOutput
(
os
.
Stdout
)
log
.
SetLevel
(
log
.
DebugLevel
)
log
.
SetFormatter
(
&
log
.
TextFormatter
{
FullTimestamp
:
true
,
})
}
func
main
()
{
cmd
:=
commands
{}
ctx
:=
kong
.
Parse
(
&
cmd
)
err
:=
ctx
.
Run
(
cmd
.
ReposPath
)
ctx
.
FatalIfErrorf
(
err
)
}