mirror of
https://github.com/helm/helm.git
synced 2026-04-22 14:47:41 -04:00
fix(cmd): Standardizes all output to use lower snake_case names
After discussing similar changes in #6866, we decided to make sure all JSON and YAML output uses lower snake case names as is generally standard Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
This commit is contained in:
parent
18ed620bc2
commit
4226c45dfd
6 changed files with 22 additions and 22 deletions
|
|
@ -110,13 +110,13 @@ func newListCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|||
}
|
||||
|
||||
type releaseElement struct {
|
||||
Name string
|
||||
Namespace string
|
||||
Revision string
|
||||
Updated string
|
||||
Status string
|
||||
Chart string
|
||||
AppVersion string
|
||||
Name string `json:"name"`
|
||||
Namespace string `json:"namespace"`
|
||||
Revision string `json:"revision"`
|
||||
Updated string `json:"updated"`
|
||||
Status string `json:"status"`
|
||||
Chart string `json:"chart"`
|
||||
AppVersion string `json:"app_version"`
|
||||
}
|
||||
|
||||
type releaseListWriter struct {
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ func newRepoListCmd(out io.Writer) *cobra.Command {
|
|||
}
|
||||
|
||||
type repositoryElement struct {
|
||||
Name string
|
||||
URL string
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
type repoListWriter struct {
|
||||
|
|
|
|||
|
|
@ -84,10 +84,10 @@ func (o *searchHubOptions) run(out io.Writer, args []string) error {
|
|||
}
|
||||
|
||||
type hubChartElement struct {
|
||||
URL string
|
||||
Version string
|
||||
AppVersion string
|
||||
Description string
|
||||
URL string `json:"url"`
|
||||
Version string `json:"version"`
|
||||
AppVersion string `json:"app_version"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
type hubSearchWriter struct {
|
||||
|
|
|
|||
|
|
@ -191,10 +191,10 @@ func (o *searchRepoOptions) buildIndex(out io.Writer) (*search.Index, error) {
|
|||
}
|
||||
|
||||
type repoChartElement struct {
|
||||
Name string
|
||||
Version string
|
||||
AppVersion string
|
||||
Description string
|
||||
Name string `json:"name"`
|
||||
Version string `json:"version"`
|
||||
AppVersion string `json:"app_version"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
type repoSearchWriter struct {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
[{"Name":"testing/mariadb","Version":"0.3.0","AppVersion":"","Description":"Chart for MariaDB"}]
|
||||
[{"name":"testing/mariadb","version":"0.3.0","app_version":"","description":"Chart for MariaDB"}]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
- AppVersion: 2.3.4
|
||||
Description: Deploy a basic Alpine Linux pod
|
||||
Name: testing/alpine
|
||||
Version: 0.2.0
|
||||
- app_version: 2.3.4
|
||||
description: Deploy a basic Alpine Linux pod
|
||||
name: testing/alpine
|
||||
version: 0.2.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue