envcli

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapConfig

func BootstrapConfig(cmdConfig *CmdConfig)

BootstrapConfig is used to set the config for all commands that use genConfig Useful for using envsec programmatically.

func DownloadCmd

func DownloadCmd() *cobra.Command

func ExecCmd

func ExecCmd() *cobra.Command

func Execute

func Execute(ctx context.Context) int
Example
ctx := context.Background()
Execute(ctx)
Output:

func ListCmd

func ListCmd() *cobra.Command

func RemoveCmd

func RemoveCmd() *cobra.Command

func RootCmd

func RootCmd(flags *rootCmdFlags) *cobra.Command

func SetCmd

func SetCmd() *cobra.Command

func SetEnvMap

func SetEnvMap(ctx context.Context, store envsec.Store, envID envsec.EnvID, envMap map[string]string) error

func UploadCmd

func UploadCmd() *cobra.Command

func UsageFunc

func UsageFunc(cmd *cobra.Command) error

Types

type CmdConfig

type CmdConfig struct {
	Store    envsec.Store
	EnvID    envsec.EnvID
	EnvNames []string
}

Jump to

Keyboard shortcuts

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