Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/cmd/beta/image/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *iaas.ImageCreateRes

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal image: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/image/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func outputResult(p *print.Printer, outputFormat string, items []iaas.Image) err

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(items, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(items, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal image list: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/key-pair/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func outputResult(p *print.Printer, outputFormat string, item *iaas.Keypair) err
}
p.Outputln(string(details))
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(item, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(item, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal key pair: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/beta/key-pair/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ func outputResult(p *print.Printer, outputFormat string, showOnlyPublicKey bool,

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(keyPair, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(keyPair, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if showOnlyPublicKey {
onlyPublicKey := map[string]string{
"publicKey": *keyPair.PublicKey,
}
details, err = yaml.MarshalWithOptions(onlyPublicKey, yaml.IndentSequence(true))
details, err = yaml.MarshalWithOptions(onlyPublicKey, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
}

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/key-pair/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func outputResult(p *print.Printer, outputFormat string, keyPairs []iaas.Keypair
p.Outputln(string(details))

case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(keyPairs, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(keyPairs, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal key pairs: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/key-pair/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func outputResult(p *print.Printer, model inputModel, keyPair iaas.Keypair) erro
}
p.Outputln(string(details))
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(keyPair, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(keyPair, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal key pair: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-area/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func outputResult(p *print.Printer, model *inputModel, orgLabel string, networkA

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networkArea, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networkArea, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network area: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-area/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func outputResult(p *print.Printer, outputFormat string, networkArea *iaas.Netwo

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networkArea, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networkArea, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network area: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-area/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func outputResult(p *print.Printer, outputFormat string, networkAreas []iaas.Net

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networkAreas, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networkAreas, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal area: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func outputResult(p *print.Printer, model *inputModel, networkAreaLabel string,

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networkRange, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networkRange, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network range: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func outputResult(p *print.Printer, outputFormat string, networkRange *iaas.Netw

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networkRange, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networkRange, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network range: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func outputResult(p *print.Printer, outputFormat string, networkRanges []iaas.Ne

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networkRanges, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networkRanges, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network ranges: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-area/route/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func outputResult(p *print.Printer, model *inputModel, networkAreaLabel string,

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(route, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(route, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal static route: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func outputResult(p *print.Printer, outputFormat string, route *iaas.Route) erro

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(route, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(route, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal static route: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-area/route/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func outputResult(p *print.Printer, outputFormat string, routes []iaas.Route) er

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(routes, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(routes, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal static routes: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-area/route/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func outputResult(p *print.Printer, model *inputModel, networkAreaLabel string,

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(route, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(route, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal static route: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-area/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func outputResult(p *print.Printer, model *inputModel, projectLabel string, netw

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networkArea, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networkArea, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network area: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-interface/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func outputResult(p *print.Printer, model *inputModel, nic *iaas.NIC) error {

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(nic, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(nic, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network interface: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-interface/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func outputResult(p *print.Printer, outputFormat string, nic *iaas.NIC) error {

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(nic, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(nic, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network interface: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-interface/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func outputResult(p *print.Printer, outputFormat string, nics []iaas.NIC) error

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(nics, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(nics, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal nics: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network-interface/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func outputResult(p *print.Printer, model *inputModel, nic *iaas.NIC) error {

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(nic, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(nic, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network interface: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func outputResult(p *print.Printer, model *inputModel, projectLabel string, netw

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(network, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(network, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func outputResult(p *print.Printer, outputFormat string, network *iaas.Network)

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(network, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(network, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/network/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func outputResult(p *print.Printer, outputFormat string, networks []iaas.Network

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(networks, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(networks, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal network: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/public-ip/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func outputResult(p *print.Printer, model *inputModel, projectLabel string, publ

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(publicIp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(publicIp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal public IP: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/public-ip/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func outputResult(p *print.Printer, outputFormat string, publicIp *iaas.PublicIp

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(publicIp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(publicIp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal public IP: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/public-ip/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func outputResult(p *print.Printer, outputFormat string, publicIps []iaas.Public

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(publicIps, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(publicIps, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal public IP: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/public-ip/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func outputResult(p *print.Printer, model *inputModel, publicIpLabel string, pub

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(publicIp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(publicIp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal public IP: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/security-group/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *iaas.SecurityGroup)

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal security group: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/security-group/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *iaas.SecurityGroup)

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal security group: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/security-group/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func outputResult(p *print.Printer, outputFormat string, items []iaas.SecurityGr

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(items, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(items, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal PostgreSQL Flex instance list: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/security-group/rule/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func outputResult(p *print.Printer, model *inputModel, projectLabel, securityGro

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(securityGroupRule, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(securityGroupRule, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal security group rule: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func outputResult(p *print.Printer, outputFormat string, securityGroupRule *iaas

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(securityGroupRule, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(securityGroupRule, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal security group rule: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/security-group/rule/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func outputResult(p *print.Printer, outputFormat string, securityGroupRules []ia

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(securityGroupRules, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(securityGroupRules, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal security group rules: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/server/backup/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *serverbackup.Backup

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal server backup: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/server/backup/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func outputResult(p *print.Printer, outputFormat string, backup *serverbackup.Ba

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(backup, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(backup, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal server backup: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/server/backup/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func outputResult(p *print.Printer, outputFormat string, backups []serverbackup.

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(backups, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(backups, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal Server Backup list: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *serverbackup.Backup

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal server backup schedule: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func outputResult(p *print.Printer, outputFormat string, schedule *serverbackup.

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(schedule, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(schedule, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal server backup schedule: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/server/backup/schedule/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func outputResult(p *print.Printer, outputFormat string, schedules []serverbacku

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(schedules, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(schedules, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal Server Backup Schedules list: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *serverbackup.Backup

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal update server backup schedule: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/server/command/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *runcommand.NewComma

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal server command: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/beta/server/command/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func outputResult(p *print.Printer, outputFormat string, command *runcommand.Com

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(command, yaml.IndentSequence(true))
details, err := yaml.MarshalWithOptions(command, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal server command: %w", err)
}
Expand Down
Loading