Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = log.New(os.Stderr, "", 0)
Logger is a STDERR logger
View Source
var RootCmd = &cobra.Command{ Use: "deco", Short: "Gets stuff ready to run inside docker.", Long: `deco gets your app ready to run when a container starts. For example: the filters allow you to specify individual files to filter and key/value pairs to use when filtering. By default, it works from the current directory and will filter files in place.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if encryptionKey != "" { if err := os.Setenv("DECO_ENCRYPTION_KEY", encryptionKey); err != nil { return fmt.Errorf("failed to set DECO_ENCRYPTION_KEY environment: %s", err) } } else if value := os.Getenv("DECO_ENCRYPTION_KEY"); value != "" { encryptionKey = value } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type CmdVersion ¶ added in v1.1.0
var (
Version *CmdVersion
)
Click to show internal directories.
Click to hide internal directories.