Example #1
0
// 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")
}
Example #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")
}
Example #3
0
// 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")
}
Example #4
0
// 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")
}
Example #5
0
File: logs.go Project: 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")
}
Example #6
0
// 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")
}
Example #7
0
File: docs.go Project: elizar/apex
// Initialize.
func init() {
	root.Register(Command)
}
Example #8
0
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.DurationVarP(&duration, "since", "s", 24*time.Hour, "Start time of the results")
}
Example #9
0
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.BoolVarP(&force, "force", "f", false, "Force deletion")
}
Example #10
0
File: list.go Project: kujohn/apex
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.BoolVar(&tfvars, "tfvars", false, "Output as Terraform variables")
}
Example #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")
}
Example #12
0
// Initialize.
func init() {
	root.Register(Command)

	f := Command.Flags()
	f.BoolVarP(&includeLogs, "logs", "L", false, "Print logs")
}
Example #13
0
// Initialize.
func init() {
	root.Register(Command)

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