change field name: prune -> inventory

This commit is contained in:
Jingfang Liu
2019-04-22 11:25:14 -07:00
parent c9bf70fd4b
commit b4fc1e4357
10 changed files with 29 additions and 28 deletions

View File

@@ -178,8 +178,8 @@ func NewCmdBuildPrune(
var o Options
cmd := &cobra.Command{
Use: "alpha-prune [path]",
Short: "Print configmap to prune previous applied objects",
Use: "alpha-inventory [path]",
Short: "Print the inventory object which contains a list of all other objects",
Example: examples,
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {

View File

@@ -69,7 +69,7 @@ func determineFieldOrder() []string {
"Configurations",
"Generators",
"Transformers",
"Prune",
"Inventory",
}
// Add deprecated fields here.

View File

@@ -48,7 +48,7 @@ func TestFieldOrder(t *testing.T) {
"Configurations",
"Generators",
"Transformers",
"Prune",
"Inventory",
}
actual := determineFieldOrder()
if len(expected) != len(actual) {