예제 #1
0
파일: main.go 프로젝트: quorumsco/indexor
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()
}
예제 #2
0
파일: main.go 프로젝트: quorumsco/users
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()
}
예제 #3
0
파일: main.go 프로젝트: quorumsco/proxy
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()
}
예제 #4
0
파일: main.go 프로젝트: quorumsco/cli
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()
}