MCPcopy Create free account
hub / github.com/PuerNya/git-proxy / init

Function init

main.go:217–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217func init() {
218 command.PersistentFlags().BoolVarP(&disableColor, "disable-color", "", false, "disable color output")
219 command.PersistentFlags().IntVarP(&runningPort, "running-port", "p", 30000, "disable color output")
220 command.PersistentFlags().StringVarP(&domainListPath, "domain-list-path", "d", "domainlist.txt", "set accept domain")
221 command.PersistentFlags().StringVarP(&blacklistPath, "blacklist-path", "b", "blacklist.txt", "set repository blacklist")
222 command.PersistentFlags().IntVarP(&bandwidthLimit, "bandwidth-limit", "l", 0, "set total bandwidth limit (MB/s), 0 as no limit")
223 command.PersistentFlags().IntVarP(&requestLimit, "request-limit", "r", 0, "set request limit by ip, 0 as no limit")
224 command.PersistentFlags().BoolVarP(&denyWebPage, "deny-web-page", "", false, "deny web page requests")
225 command.PersistentFlags().StringVarP(&certPath, "cert-path", "c", "cert.pem", "set tls cert path")
226 command.PersistentFlags().StringVarP(&keyPath, "key-path", "k", "key.pem", "set tls key path")
227}
228
229func main() {
230 if err := command.Execute(); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected