Small task automation and simplification tool for bare-bones git hosting. https://aphrodite.dev/~notebook/projects/gitmgr.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
688 B

package main
import (
"fmt"
"text/template"
"time"
)
const shutdownTime = 1 * time.Second
func main() {
config, err := GetConfig()
if err != nil {
panic(err)
}
PublicLinkTemplate, err = template.New("").Parse(config.PublicGitLinkTemplate)
if err != nil {
panic(err)
}
MaxDescriptionLength = config.MaxDescriptionLength
UrlPrefix = config.UrlPrefix
DefaultHead = config.DefaultHeadRef
Title = config.Title
tpl, err := template.New("").Parse(fmt.Sprint(config.CloneUrlTemplate))
if err != nil {
panic(err)
}
handlers := Handlers{
*config,
Git{
config.GitRoot,
config.IsExported,
tpl,
},
}
if err = run(handlers); err != nil {
panic(err)
}
}