Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Deploy = cli.Command{ Name: "deploy", Aliases: []string{"d"}, Usage: "deploy resources to cloud provider", Action: deployCommand, Flags: []cli.Flag{ cli.StringFlag{ Name: "d,dir", Usage: "dir to resources", EnvVar: "DIR", Value: ".", Destination: &deployOptions.Dir, }, cli.StringFlag{ Name: "e,env", Usage: "name of environment", EnvVar: "ENV", Value: "local", Destination: &deployOptions.Env, }, cli.StringFlag{ Name: "prefix", Usage: "prefix for s3 resources", EnvVar: "S3_PREFIX", Value: "resources", Destination: &deployOptions.S3Prefix, }, cli.StringFlag{ Name: "p,project", Usage: "project name", Required: true, EnvVar: "PROJECT,CODEBUILD_INITIATOR", Destination: &deployOptions.Project, }, cli.StringFlag{ Name: "r,role", Usage: "role to assume", EnvVar: "ROLE", Destination: &deployOptions.RoleARN, }, cli.StringFlag{ Name: "version", Usage: "app version", EnvVar: "VERSION", Value: "latest", Destination: &deployOptions.Version, }, cli.StringFlag{ Name: "vpc", Usage: "aws vpc id", EnvVar: "VPC_ID", Destination: &deployOptions.VpcID, }, }, }
View Source
var Docker = cli.Command{ Name: "docker", Usage: "docker related commands", Description: "helpers to simplify interacting with docker and ecr", Subcommands: []cli.Command{ { Name: "login", Usage: "login to ecr docker", Action: dockerLoginAction, Flags: []cli.Flag{ cli.StringFlag{ Name: "docker", Value: "docker", Usage: "docker command to invoke", EnvVar: "COMMAND", Destination: &dockerOptions.DockerCLI, }, cli.StringFlag{ Name: "r,role", Usage: "role to assume", EnvVar: "ROLE", Destination: &dockerOptions.RoleARN, }, }, }, { Name: "promote", Usage: "promote docker image from source to target account", Action: dockerPromoteAction, Flags: []cli.Flag{ cli.StringFlag{ Name: "docker", Value: "docker", Usage: "docker command to invoke", EnvVar: "COMMAND", Destination: &dockerOptions.DockerCLI, }, cli.StringFlag{ Name: "f,filename", Usage: "properties file containing docker image", EnvVar: "FILENAME", Required: true, Destination: &dockerOptions.Filename, }, cli.StringFlag{ Name: "r,role", Usage: "role to assume", EnvVar: "ROLE", Destination: &dockerOptions.RoleARN, }, }, }, }, }
View Source
var Version = cli.Command{
Name: "version",
Action: versionCommand,
}
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.