Module path, binary name, config dir, help text, and docs all updated from fgj-sid/fgj to fj.
20 lines
278 B
Go
20 lines
278 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"forgejo.zerova.net/public/fj/cmd"
|
|
)
|
|
|
|
func main() {
|
|
if err := cmd.Execute(); err != nil {
|
|
err = cmd.ContextualError(err)
|
|
if cmd.JSONErrors() {
|
|
cmd.WriteJSONError(err)
|
|
} else {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
}
|
|
os.Exit(1)
|
|
}
|
|
}
|