1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Added admin priveleges to list all the notes

This commit is contained in:
Zack Scholl
2016-02-08 17:37:33 -05:00
parent b704768ded
commit e33e3a7d1b
2 changed files with 29 additions and 9 deletions

View File

@ -27,6 +27,7 @@ var RuntimeArgs struct {
ServerCRT string
ServerKey string
SourcePath string
AdminKey string
}
func main() {
@ -34,6 +35,7 @@ func main() {
databaseFile := path.Join(path.Dir(executableFile), "data.db")
flag.StringVar(&RuntimeArgs.Port, "p", ":12312", "port to bind")
flag.StringVar(&RuntimeArgs.DatabaseLocation, "db", databaseFile, "location of database file")
flag.StringVar(&RuntimeArgs.AdminKey, "a", "", "key to use admin priveleges")
flag.StringVar(&RuntimeArgs.ServerCRT, "crt", "", "location of ssl crt")
flag.StringVar(&RuntimeArgs.ServerKey, "key", "", "location of ssl key")
flag.CommandLine.Usage = func() {