|
|
@ -55,11 +55,12 @@ func newShowCmd(out io.Writer) *cobra.Command {
|
|
|
|
client := action.NewShow(action.ShowAll)
|
|
|
|
client := action.NewShow(action.ShowAll)
|
|
|
|
|
|
|
|
|
|
|
|
showCommand := &cobra.Command{
|
|
|
|
showCommand := &cobra.Command{
|
|
|
|
Use: "show",
|
|
|
|
Use: "show",
|
|
|
|
Short: "show information of a chart",
|
|
|
|
DisableFlagsInUseLine: true,
|
|
|
|
Aliases: []string{"inspect"},
|
|
|
|
Short: "show information of a chart",
|
|
|
|
Long: showDesc,
|
|
|
|
Aliases: []string{"inspect"},
|
|
|
|
Args: require.NoArgs,
|
|
|
|
Long: showDesc,
|
|
|
|
|
|
|
|
Args: require.NoArgs,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Function providing dynamic auto-completion
|
|
|
|
// Function providing dynamic auto-completion
|
|
|
@ -71,10 +72,11 @@ func newShowCmd(out io.Writer) *cobra.Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
all := &cobra.Command{
|
|
|
|
all := &cobra.Command{
|
|
|
|
Use: "all [CHART]",
|
|
|
|
Use: "all [CHART]",
|
|
|
|
Short: "show all information of the chart",
|
|
|
|
DisableFlagsInUseLine: true,
|
|
|
|
Long: showAllDesc,
|
|
|
|
Short: "show all information of the chart",
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
Long: showAllDesc,
|
|
|
|
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
client.OutputFormat = action.ShowAll
|
|
|
|
client.OutputFormat = action.ShowAll
|
|
|
|
output, err := runShow(args, client)
|
|
|
|
output, err := runShow(args, client)
|
|
|
@ -87,10 +89,11 @@ func newShowCmd(out io.Writer) *cobra.Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
valuesSubCmd := &cobra.Command{
|
|
|
|
valuesSubCmd := &cobra.Command{
|
|
|
|
Use: "values [CHART]",
|
|
|
|
Use: "values [CHART]",
|
|
|
|
Short: "show the chart's values",
|
|
|
|
DisableFlagsInUseLine: true,
|
|
|
|
Long: showValuesDesc,
|
|
|
|
Short: "show the chart's values",
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
Long: showValuesDesc,
|
|
|
|
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
client.OutputFormat = action.ShowValues
|
|
|
|
client.OutputFormat = action.ShowValues
|
|
|
|
output, err := runShow(args, client)
|
|
|
|
output, err := runShow(args, client)
|
|
|
@ -103,10 +106,11 @@ func newShowCmd(out io.Writer) *cobra.Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
chartSubCmd := &cobra.Command{
|
|
|
|
chartSubCmd := &cobra.Command{
|
|
|
|
Use: "chart [CHART]",
|
|
|
|
Use: "chart [CHART]",
|
|
|
|
Short: "show the chart's definition",
|
|
|
|
DisableFlagsInUseLine: true,
|
|
|
|
Long: showChartDesc,
|
|
|
|
Short: "show the chart's definition",
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
Long: showChartDesc,
|
|
|
|
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
client.OutputFormat = action.ShowChart
|
|
|
|
client.OutputFormat = action.ShowChart
|
|
|
|
output, err := runShow(args, client)
|
|
|
|
output, err := runShow(args, client)
|
|
|
@ -119,10 +123,11 @@ func newShowCmd(out io.Writer) *cobra.Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
readmeSubCmd := &cobra.Command{
|
|
|
|
readmeSubCmd := &cobra.Command{
|
|
|
|
Use: "readme [CHART]",
|
|
|
|
Use: "readme [CHART]",
|
|
|
|
Short: "show the chart's README",
|
|
|
|
DisableFlagsInUseLine: true,
|
|
|
|
Long: readmeChartDesc,
|
|
|
|
Short: "show the chart's README",
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
Long: readmeChartDesc,
|
|
|
|
|
|
|
|
Args: require.ExactArgs(1),
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
client.OutputFormat = action.ShowReadme
|
|
|
|
client.OutputFormat = action.ShowReadme
|
|
|
|
output, err := runShow(args, client)
|
|
|
|
output, err := runShow(args, client)
|
|
|
|