cmd

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Root
	CMD_ROOT_OUTPUT = "output"

	// Environment variable name for vault password.
	ENV_VAULT_PASSWORD = "CFCTL_VAULT_PASSWORD"

	// Environment variable name for vault password file.
	ENV_VAULT_PASSWORD_FILE = "CFCTL_VAULT_PASSWORD_FILE"

	// Command line flag for vault password.
	CMD_VAULT_PASSWORD = "vault-password"

	// Command line flag for vault password file.
	CMD_VAULT_PASSWORD_FILE = "vault-password-file"

	// Default vault password file name.
	DEFAULT_VAULT_PASSWORD_FILE = ".cfctl_vault_password"

	// Init repository folde path
	CMD_INIT_PATH = "path"

	// Init repository folder name
	CMD_INIT_NAME = "name"

	// Command line flag for bucket.
	CMD_S3_UPLOAD_BUCKET = "bucket"

	// Command line flag for bucket prefix.
	CMD_S3_UPLOAD_PREFIX = "prefix"

	// Command line flag for recursive.
	CMD_S3_UPLOAD_RECURSIVE = "recursive"

	// Command line flag for excluding files.
	CMD_S3_UPLOAD_EXCLUDE_FILES = "exclude-files"

	// Command line flag for stacks.
	CMD_STACK_DEPLOY_STACK = "stack"

	// Command line flag for configuration file.
	CMD_STACK_DEPLOY_FILE = "file"

	// Command line flag for dry run.
	CMD_STACK_DEPLOY_DRY_RUN = "dry-run"

	// Command line flag for envoirnment folder.
	CMD_STACK_DEPLOY_ENV = "env"

	// Command line flag for tag grouping.
	CMD_STACK_DEPLOY_TAGS = "tags"

	// Command line flag for no delete when failing to create stack
	CMD_STACK_DEPLOY_KEEP_STACK_ON_FAILURE = "keep-stack-on-failure"

	// Parameter parsing.
	CMD_STACK_DEPLOY_PARAM_ONLY = "param-only"

	// Variable override
	CMD_STACK_DEPLOY_VARS = "vars"

	// Default environment folder name.
	STACK_DEPLOY_ENV_DEFAULT_FOLDER = "default"

	// Command line flag for stack delete all.
	CMD_STACK_DELETE_ALL = "all"

	CMD_STACK_DELETE_RETAIN_RESOURCES = "retain-resources"

	// Command line flag for stack get name.
	CMD_STACK_GET_NAME = "name"

	// Command line flag for stack get-resources name.
	CMD_STACK_GET_RESOURCES_NAME = "name"

	// Command line flag for stack list status.
	CMD_STACK_LIST_STATUS = "status"

	// Command line flag for template validate recursively.
	CMD_TEMPLATE_VALIDATE_RECURSIVE = "recursive"
)
View Source
const (
	// cfctl editor env
	EDITOR_ENV = "CFCTL_EDITOR"
)
View Source
const Version = "v1.1.3"

Variables

View Source
var CmdS3 = getCmdS3()
View Source
var CmdStack = getCmdStack()
View Source
var CmdTemplate = getCmdTemplate()
View Source
var CmdVault = getCmdVault()
View Source
var Cmds = NewCmdCfctl()

Functions

func Execute

func Execute()

func GetPasswords

func GetPasswords(pass, passFile string, noPrompt, allowEmpty bool) ([]string, error)

getPassword function will attempt to locate passwrod via three ways in order: 1. CLI option --password and --password-file 2. Environment CFCTL_VAULT_PASSWORD or CFCTL_VAULT_PASSWORD_FILE 3. Default passwrod file in ~/.cfctl_vault_password

Multiple passwords are seperated by ","

func NewCmdCfctl

func NewCmdCfctl() *cobra.Command

Root cmd

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL