示例#1
0
文件: build.go 项目: coderhaoxin/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.StringVarP(&envFile, "env-file", "E", "", "Set environment variables from JSON file")
	f.StringSliceVarP(&env, "set", "s", nil, "Set environment variable")
}
示例#2
0
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.StringVarP(&alias, "alias", "a", "current", "Function alias")
	f.StringVarP(&version, "version", "v", "", "version to which rollback is done")
}
示例#3
0
文件: invoke.go 项目: Robh081956/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.BoolVarP(&includeLogs, "logs", "L", false, "Print logs")
	f.StringVarP(&alias, "alias", "a", "current", "Function alias")
}
示例#4
0
文件: logs.go 项目: DavidTPate/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.DurationVarP(&duration, "since", "s", 5*time.Minute, "Start time of the search")
	f.StringVarP(&filter, "filter", "F", "", "Filter logs with pattern")
	f.BoolVarP(&follow, "follow", "f", false, "Follow tails logs for updates")
}
示例#5
0
文件: logs.go 项目: kujohn/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.DurationVarP(&duration, "duration", "d", 5*time.Minute, "Duration of log search prior to now")
	f.StringVarP(&filter, "filter", "F", "", "Filter logs with pattern")
	f.BoolVarP(&follow, "follow", "f", false, "Follow tails logs for updates")
}
示例#6
0
文件: deploy.go 项目: elizar/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.StringSliceVarP(&env, "env", "e", nil, "Environment variable")
	f.StringVarP(&alias, "alias", "a", "current", "Function alias")
	f.IntVarP(&concurrency, "concurrency", "c", 5, "Concurrent deploys")
}
示例#7
0
文件: docs.go 项目: elizar/apex
// Initialize.
func init() {
	root.Register(Command)
}
示例#8
0
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.DurationVarP(&duration, "since", "s", 24*time.Hour, "Start time of the results")
}
示例#9
0
文件: delete.go 项目: elizar/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.BoolVarP(&force, "force", "f", false, "Force deletion")
}
示例#10
0
文件: list.go 项目: kujohn/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.BoolVar(&tfvars, "tfvars", false, "Output as Terraform variables")
}
示例#11
0
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.DurationVarP(&duration, "duration", "d", 24*time.Hour, "Duration of metrics results prior to now")
}
示例#12
0
文件: invoke.go 项目: kujohn/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.BoolVarP(&includeLogs, "logs", "L", false, "Print logs")
}
示例#13
0
文件: deploy.go 项目: kujohn/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.IntVarP(&concurrency, "concurrency", "c", 5, "Concurrent deploys")
}