Merge branch 'rewrite'

This commit is contained in:
2026-01-20 12:48:41 -05:00
3 changed files with 9 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ Check out [Fes's docs](https://docs.vxserver.dev/static/fes.html).`, "$$", "`"),
ui.Hint("you can run this with `fes run %s`", dir) ui.Hint("you can run this with `fes run %s`", dir)
fmt.Println("Created new Fes project at", func () string { fmt.Println("Created new Fes project at", func() string {
if cwd, err := os.Getwd(); err != nil { if cwd, err := os.Getwd(); err != nil {
return dir return dir
} else { } else {

View File

@@ -40,7 +40,13 @@ func Start(dir string) {
err = readArchive(w, route) err = readArchive(w, route)
} else { } else {
w.WriteHeader(http.StatusNotFound) w.WriteHeader(http.StatusNotFound)
w.Write([]byte("not found :(")) w.Write([]byte(`<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>fes</center>
</body>
</html>`))
} }
return return
} }

View File

@@ -9,7 +9,7 @@ var gitCommit string = "devel"
const PROGRAM_NAME string = "fes" const PROGRAM_NAME string = "fes"
const PROGRAM_NAME_LONG string = "fes/fSD" const PROGRAM_NAME_LONG string = "fes/fSD"
const VERSION string = "1.0.1" const VERSION string = "1.1.0"
func Version() { func Version() {
fmt.Printf("%s version %s\n", PROGRAM_NAME_LONG, VERSION) fmt.Printf("%s version %s\n", PROGRAM_NAME_LONG, VERSION)