コード例 #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
ファイル: rollback.go プロジェクト: DavidTPate/apex
// 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
ファイル: metrics.go プロジェクト: Robh081956/apex
// 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
ファイル: metrics.go プロジェクト: jmcfarlane/apex
// 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")
}