right more renaming stuff

master
Jordan Orelli 3 years ago
parent 1e569c08cd
commit 9d454a752e

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
while true; do while true; do
find . -type f -not -name modularium \ find . -type f -not -name mir \
| grep -v '.git' \ | grep -v '.git' \
| entr -c -d -r ./devloop | entr -c -d -r ./devloop
sleep 0.25 sleep 0.25

@ -4,4 +4,4 @@ set -e
/home/jordan/code/go/bin/go test /home/jordan/code/go/bin/go test
/home/jordan/code/go/bin/go build /home/jordan/code/go/bin/go build
./modularium serve ./mir serve

@ -89,7 +89,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
err := zip.CreateFromDir(w, module.Version{ err := zip.CreateFromDir(w, module.Version{
Path: "orel.li/fart", Path: "orel.li/fart",
Version: "v0.0.3", Version: "v0.0.3",
}, "/home/jorelli/modularium/modules/orel.li/fart") }, "/home/jorelli/mir/modules/orel.li/fart")
if err != nil { if err != nil {
log_error.Printf("zip error: %v", err) log_error.Printf("zip error: %v", err)
} }

@ -8,7 +8,7 @@ import (
) )
func serve(args []string) { func serve(args []string) {
path := "./modularium.sock" path := "./mir.sock"
indexPath := pathArg{path: "./modules-index.json"} indexPath := pathArg{path: "./modules-index.json"}
serveFlags := flag.NewFlagSet("serve", flag.ExitOnError) serveFlags := flag.NewFlagSet("serve", flag.ExitOnError)

@ -1 +1,8 @@
modularium [listen-address] mir: a Go modules origin server
Usage:
mir [command]
Commands:
serve: live module server
zip: creates module zip files

Loading…
Cancel
Save