update TODO & 404 handling

This commit is contained in:
2025-12-01 17:21:17 -05:00
parent a67a654491
commit 2e876a4a47
9 changed files with 104 additions and 15 deletions

View File

@@ -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]