@@ -43,6 +43,8 @@ parent:
4343 alias: "my_system"
4444product: "OSS"
4545tier: "tier_4"
46+ type:
47+ alias: "mobile-app"
4648EOF` ,
4749 Run : func (cmd * cobra.Command , args []string ) {
4850 input , err := readResourceInput [opslevel.ServiceCreateInput ]()
@@ -117,15 +119,15 @@ var listServiceCmd = &cobra.Command{
117119 common .JsonPrint (json .MarshalIndent (list , "" , " " ))
118120 } else if isCsvOutput () {
119121 w := csv .NewWriter (os .Stdout )
120- w .Write ([]string {"NAME" , "ID" , "ALIASES" })
122+ w .Write ([]string {"NAME" , "ID" , "TYPE" , " ALIASES" })
121123 for _ , item := range list {
122- w .Write ([]string {item .Name , string (item .Id ), strings .Join (item .Aliases , "/" )})
124+ w .Write ([]string {item .Name , string (item .Id ), item . Type . Alias , strings .Join (item .Aliases , "/" )})
123125 }
124126 w .Flush ()
125127 } else {
126- w := common .NewTabWriter ("NAME" , "ID" , "ALIASES" )
128+ w := common .NewTabWriter ("NAME" , "ID" , "TYPE" , " ALIASES" )
127129 for _ , item := range list {
128- fmt .Fprintf (w , "%s\t %s\t %s\t \ n " , item .Name , item .Id , strings .Join (item .Aliases , "," ))
130+ fmt .Fprintf (w , "%s\t %s\t %s\t %s \t \ n " , item .Name , item .Id , item . Type . Alias , strings .Join (item .Aliases , "," ))
129131 }
130132 w .Flush ()
131133 }
@@ -151,6 +153,8 @@ parent:
151153 alias: "my_system"
152154product: "OSS"
153155tier: "tier_3"
156+ type:
157+ alias: "mobile-app"
154158EOF` ,
155159 Run : func (cmd * cobra.Command , args []string ) {
156160 input , err := readResourceInput [opslevel.ServiceUpdateInput ]()
0 commit comments