Merge branch 'rewrite'
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user