I want to prepare a command in the GC CLI to output the history of Change Requests for multiple organizations to CSV.
I attempted CSV output using transformstr as shown below, but it hangs and no results are output.
Command:
gc organizations limits changerequests list --transformstr="{{- range . -}}\"{{.key}}\",\"{{.requestedValue}}\",\"{{.description}}\",\"{{.supportCaseUrl}}\",\"{{.status}}\",\"{{.currentValue}}\",\"{{.dateCreated}}\",\"{{.dateCompleted}}\",\"{{.id}}\"{{ printf \"\n\" }}{{- end -}}
Is there something wrong with the syntax?
Other commands with similar syntax output to CSV successfully.
Regards,
#PlatformCLI------------------------------
Yusuke Higashino
Engineer
------------------------------