cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "helm-value-store",
	Short: "A helm plugin for working with Helm Release data",
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		var err error
		switch backend := viper.GetString("backend"); backend {
		case "dynamodb":
			releaseStore, err = dynamo.NewReleaseStore(viper.GetString("dynamodb-table"))
		case "datastore":
			releaseStore, err = datastore.NewReleaseStore(viper.GetString("service-account"))
		default:
			err = fmt.Errorf("No valid value store specified: %s. Must be one of %v", backend, storeTypes)
		}
		exitOnErr(err)
	},
}

RootCmd is the root command

View Source
var Version string

Version holds the application version

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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