@@ -10,10 +10,10 @@ import (
1010 "path/filepath"
1111 "strings"
1212
13- "github.com/nkanaev/yarr /src/platform"
14- "github.com/nkanaev/yarr /src/server"
15- "github.com/nkanaev/yarr /src/storage"
16- "github.com/nkanaev/yarr /src/worker"
13+ "github.com/thangisme/reedn /src/platform"
14+ "github.com/thangisme/reedn /src/server"
15+ "github.com/thangisme/reedn /src/storage"
16+ "github.com/thangisme/reedn /src/worker"
1717)
1818
1919var Version string = "0.0"
@@ -61,14 +61,14 @@ func main() {
6161 fmt .Fprintln (out , " " , strings .Join (OptList , ", " ))
6262 }
6363
64- flag .StringVar (& addr , "addr" , opt ("YARR_ADDR " , "127.0.0.1:7070" ), "address to run server on" )
65- flag .StringVar (& basepath , "base" , opt ("YARR_BASE " , "" ), "base path of the service url" )
66- flag .StringVar (& authfile , "auth-file" , opt ("YARR_AUTHFILE " , "" ), "`path` to a file containing username:password. Takes precedence over --auth (or YARR_AUTH )" )
67- flag .StringVar (& auth , "auth" , opt ("YARR_AUTH " , "" ), "string with username and password in the format `username:password`" )
68- flag .StringVar (& certfile , "cert-file" , opt ("YARR_CERTFILE " , "" ), "`path` to cert file for https" )
69- flag .StringVar (& keyfile , "key-file" , opt ("YARR_KEYFILE " , "" ), "`path` to key file for https" )
70- flag .StringVar (& db , "db" , opt ("YARR_DB " , "" ), "storage file `path`" )
71- flag .StringVar (& logfile , "log-file" , opt ("YARR_LOGFILE " , "" ), "`path` to log file to use instead of stdout" )
64+ flag .StringVar (& addr , "addr" , opt ("REEDN_ADDR " , "127.0.0.1:7070" ), "address to run server on" )
65+ flag .StringVar (& basepath , "base" , opt ("REEDN_BASE " , "" ), "base path of the service url" )
66+ flag .StringVar (& authfile , "auth-file" , opt ("REEDN_AUTHFILE " , "" ), "`path` to a file containing username:password. Takes precedence over --auth (or REEDN_AUTH )" )
67+ flag .StringVar (& auth , "auth" , opt ("REEDN_AUTH " , "" ), "string with username and password in the format `username:password`" )
68+ flag .StringVar (& certfile , "cert-file" , opt ("REEDN_CERTFILE " , "" ), "`path` to cert file for https" )
69+ flag .StringVar (& keyfile , "key-file" , opt ("REEDN_KEYFILE " , "" ), "`path` to key file for https" )
70+ flag .StringVar (& db , "db" , opt ("REEDN_DB " , "" ), "storage file `path`" )
71+ flag .StringVar (& logfile , "log-file" , opt ("REEDN_LOGFILE " , "" ), "`path` to log file to use instead of stdout" )
7272 flag .BoolVar (& ver , "version" , false , "print application version" )
7373 flag .BoolVar (& open , "open" , false , "open the server in browser" )
7474 flag .Parse ()
@@ -100,7 +100,7 @@ func main() {
100100 log .Fatal ("Failed to get config dir: " , err )
101101 }
102102
103- storagePath := filepath .Join (configPath , "yarr " )
103+ storagePath := filepath .Join (configPath , "reedn " )
104104 if err := os .MkdirAll (storagePath , 0755 ); err != nil {
105105 log .Fatal ("Failed to create app config dir: " , err )
106106 }
0 commit comments