func (g *getCmd) run() error {
	res, err := g.client.ReleaseContent(g.release, helm.ContentReleaseVersion(g.version))
	if err != nil {
		return prettyError(err)
	}

	cfg, err := chartutil.CoalesceValues(res.Release.Chart, res.Release.Config)
	if err != nil {
		return err
	}
	cfgStr, err := cfg.YAML()
	if err != nil {
		return err
	}

	data := map[string]interface{}{
		"Release":        res.Release,
		"ComputedValues": cfgStr,
		"ReleaseDate":    timeconv.Format(res.Release.Info.LastDeployed, time.ANSIC),
	}
	return tpl(getTemplate, data, g.out)
}
// getCmd is the command that implements 'helm get'
getCmd is the command that implements 'helm get'
// getCmd is the command that implements ' helm get '
func (g *getCmd) run() error {
	res, err := g.client.ReleaseContent(g.release, helm.ContentReleaseVersion(g.version))
	if err != nil {
		return prettyError(err)
	}
	cfg, err := chartutil.CoalesceValues(res.Release.Chart, res.Release.Config)
	if err != nil {
		return err
	}
	cfgStr, err := cfg.YAML()
	if err != nil {
		return err
	}
	data := map[string]interface{}{
		"Release":        res.Release,
		"ComputedValues": cfgStr,
		"ReleaseDate":    timeconv.Format(res.Release.Info.LastDeployed, time.ANSIC),
	}
	return tpl(getTemplate, data, g.out)
}
func ( g * getCmd ) run ( ) error { res , err := g . client . ReleaseContent ( g . release , helm . ContentReleaseVersion ( g . version ) ) if err != nil { return prettyError ( err ) } cfg , err := chartutil . CoalesceValues ( res . Release . Chart , res . Release . Config ) if err != nil { return err } cfgStr , err := cfg . YAML ( ) if err != nil { return err } data := map [ string ] interface { } { " " : res . Release , " " : cfgStr , " " : timeconv . Format ( res . Release . Info . LastDeployed , time . ANSIC ) , } return tpl ( getTemplate , data , g . out ) }
getCmd is the command that implements 'helm get'
getCmd is the command that implements ' helm get '