Skip to content

Commit

Permalink
Rename methods from camelCase to a more flat snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx committed Mar 25, 2024
1 parent fe2c0ae commit f3f075a
Show file tree
Hide file tree
Showing 1,067 changed files with 14,553 additions and 14,602 deletions.
2 changes: 1 addition & 1 deletion .codegen/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Dependency updates:

{{- define "what" -}}
{{if eq .X "method" -}}
`{{.Method.Service.CamelName}}{{.Method.PascalName}}()` function
`{{.AsFlat.SnakeName}}()` function
{{- end}}
{{- end -}}
8 changes: 4 additions & 4 deletions .codegen/service.R.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ NULL
{{end}}{{if .Pagination}}#'
#' @return `data.frame` with all of the response pages.
{{end}}#'
#' @rdname {{.Service.CamelName}}{{.PascalName}}
#' @rdname {{.AsFlat.SnakeName}}
#' @export
{{- $hasRequiredFields := and .Request (gt (len .Request.RequiredFields) 0) }}
{{.Service.CamelName}}{{.PascalName}} <- function(client{{- if .Request}}{{range .Request.RequiredFields}}, {{.SnakeName}}{{end -}}
{{.AsFlat.SnakeName}} <- function(client{{- if .Request}}{{range .Request.RequiredFields}}, {{.SnakeName}}{{end -}}
{{- range .Request.NonRequiredFields}}, {{.SnakeName}}=NULL{{end}}
{{- end}}) {
{{- template "method-serialize" .}}
Expand All @@ -34,10 +34,10 @@ NULL
#'{{range .Request.Fields}}
#' @param {{.SnakeName}} {{if .Required}}Required. {{end}}{{with .Summary}}{{.}}{{else}}This field has no description yet.{{end}}{{end}}
{{end}}#'
#' @rdname {{.Service.CamelName}}{{.PascalName}}AndWait
#' @rdname {{.AsFlat.SnakeName}}_and_wait
#' @export
{{- $hasRequiredFields := and .Request (gt (len .Request.RequiredFields) 0) }}
{{.Service.CamelName}}{{.PascalName}}AndWait <- function(client{{- if .Request}}{{range .Request.RequiredFields}}, {{.SnakeName}}{{end -}}
{{.AsFlat.SnakeName}}_and_wait <- function(client{{- if .Request}}{{range .Request.RequiredFields}}, {{.SnakeName}}{{end -}}
{{- range .Request.NonRequiredFields}}, {{.SnakeName}}=NULL{{end}}
{{- end}}, timeout={{.Wait.Timeout}}, callback=cli_reporter) {
{{- template "method-serialize" .}}
Expand Down
Loading

0 comments on commit f3f075a

Please sign in to comment.