Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ dist/
main
conf/freno.local.conf.json
.vendor/
freno
.idea/
31 changes: 13 additions & 18 deletions cmd/freno/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
group.ForceLeadership = *forceLeadership

if *help {
printHelp()
printUsage()
return
}

Expand Down Expand Up @@ -83,8 +83,6 @@ func main() {
case *http:
err := httpServe()
log.Errore(err)
case *help:
printHelp()
default:
printUsage()
}
Expand Down Expand Up @@ -126,25 +124,22 @@ func httpServe() error {
return gohttp.ListenAndServe(fmt.Sprintf(":%d", port), router)
}

func printHelp() {
panic("not yet implemented")
}

func printUsage() {
fmt.Println(`Usage: freno [OPTIONS]
To run the freno service, execute:
freno --http
To run the freno service, execute:
freno --http

For more help options use: freno -help.

freno is a free and open source software.
Please see https://github.com/github/freno/blob/master/README.md#license for license.
Sources and binaries are found on https://github.com/github/freno/releases.
Sources are also available by cloning https://github.com/github/freno.
freno is a free and open source software.
Please see https://github.com/github/freno/blob/master/README.md#license for license.
Sources and binaries are found on https://github.com/github/freno/releases.
Sources are also available by cloning https://github.com/github/freno.

Issues can be sumbitted on https://github.com/github/freno/issues
Please see https://github.com/github/freno/blob/master/README.md#contributing for contributions
Please see https://github.com/github/freno/blob/master/README.md#contributing for contributions

Authored by GitHub engineering

OPTIONS:`)

Authored by GitHub engineering
`)
flag.PrintDefaults()
}