update TODO & 404 handling
This commit is contained in:
9
main.go
9
main.go
@@ -7,6 +7,8 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/fatih/color"
|
||||
|
||||
"fes/src/config"
|
||||
"fes/src/new"
|
||||
"fes/src/server"
|
||||
@@ -16,7 +18,8 @@ import (
|
||||
var core embed.FS
|
||||
|
||||
func init() {
|
||||
config.Port = flag.Int("p", 3000, "set the server port")
|
||||
config.Port = flag.Int("p", 3000, "Set the server port")
|
||||
config.Color = flag.Bool("no-color", false, "Disable color output")
|
||||
config.Core = core
|
||||
}
|
||||
|
||||
@@ -27,6 +30,10 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if *config.Color {
|
||||
color.NoColor = true
|
||||
}
|
||||
|
||||
cmd := os.Args[1]
|
||||
dir := os.Args[2]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user