Merge pull request #673 from technosophos/feat/better-get

fix(helm): improve 'helm get' output
pull/674/head
Matt Butcher 9 years ago
commit 33962abad0

@ -4,8 +4,10 @@ import (
"errors" "errors"
"fmt" "fmt"
"os" "os"
"time"
"github.com/kubernetes/helm/pkg/helm" "github.com/kubernetes/helm/pkg/helm"
"github.com/kubernetes/helm/pkg/timeconv"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -82,10 +84,11 @@ func getCmd(cmd *cobra.Command, args []string) error {
return err return err
} }
fmt.Printf("Chart/Version: %s %s\n", res.Release.Chart.Metadata.Name, res.Release.Chart.Metadata.Version) fmt.Printf("CHART: %s-%s\n", res.Release.Chart.Metadata.Name, res.Release.Chart.Metadata.Version)
fmt.Println("Config:") fmt.Printf("RELEASED: %s\n", timeconv.Format(res.Release.Info.LastDeployed, time.ANSIC))
fmt.Println(res.Release.Config) fmt.Println("CONFIG:")
fmt.Println("\nManifest:") fmt.Println(res.Release.Config.Raw)
fmt.Println("MANIFEST:")
fmt.Println(res.Release.Manifest) fmt.Println(res.Release.Manifest)
return nil return nil
} }

Loading…
Cancel
Save