Merge pull request #6881 from thomastaylor312/fix/lowercase_the_output

fix(cmd): Standardizes all output to use lower snake_case names
pull/6882/head
Taylor Thomas 5 years ago committed by GitHub
commit 7d9084eb6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save