示例#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()
}