func main() { cmd := cmd.New() cmd.Name = "Indexer" cmd.Usage = "Indexes bruteforce added contacts" cmd.Version = "0.0.1" cmd.Before = script cmd.Flags = append(cmd.Flags, []cli.Flag{ cli.StringFlag{Name: "config, c", Usage: "configuration file", EnvVar: "CONFIG"}, cli.HelpFlag, }...) cmd.RunAndExitOnError() }
func main() { cmd := cmd.New() cmd.Name = "users" cmd.Usage = "quorums users backend" cmd.Version = "0.0.1" cmd.Before = serve cmd.Flags = append(cmd.Flags, []cli.Flag{ cli.StringFlag{Name: "config, c", Usage: "configuration file", EnvVar: "CONFIG"}, cli.HelpFlag, }...) cmd.RunAndExitOnError() }
func main() { cmd := cmd.New() cmd.Name = "proxy" cmd.Usage = "Proxy for OAuth2 secure authentification" cmd.Version = "0.0.1" cmd.Before = serve cmd.Flags = append(cmd.Flags, []cli.Flag{ cli.StringFlag{Name: "client-id", Value: "proxy", Usage: "oauth2 proxy client id", EnvVar: "CLIENT_ID"}, cli.StringFlag{Name: "client-secret", Value: "proxy", Usage: "oauth2 proxy client secret", EnvVar: "CLIENT_SECRET"}, cli.StringFlag{Name: "config, c", Usage: "configuration file", EnvVar: "CONFIG"}, cli.HelpFlag, }...) cmd.RunAndExitOnError() }
func main() { cmd := cmd.New() cmd.Name = "addusers" cmd.Usage = "add users to quorums' database" cmd.Version = "0.0.1" cmd.Before = add cmd.Flags = append(cmd.Flags, []cli.Flag{ cli.StringFlag{Name: "config, c", Usage: "configuration file", EnvVar: "CONFIG"}, cli.StringFlag{Name: "mail, m", Usage: "email"}, cli.StringFlag{Name: "password, p", Usage: "password"}, cli.StringFlag{Name: "firstname, f", Usage: "firstname"}, cli.StringFlag{Name: "surname, s", Usage: "surname"}, cli.StringFlag{Name: "group, g", Usage: "groupID"}, cli.HelpFlag, }...) cmd.RunAndExitOnError() }